// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // »Project« Teikitu Gaming System (TgS) (∂) // »File« TgS (IPH) Common -- OBJECTS.h // »Author« Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com) // »Version« 4.0 // ------------------------------------------------------------------------------------------------------------------------------ // // Copyright: © 2002-2010, Andrew Aye. All Rights Reserved. // This software is free for non-commercial use. Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // Redistributions of source code must retain this copyright notice, this list of conditions and the following disclaimers. // Redistributions in binary form must reproduce this copyright notice, this list of conditions and the following // disclaimers in the documentation and other materials provided with the distribution. // Neither the names of the copyright owner nor the names of its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // The intellectual property rights of the algorithms used reside with Andrew Aye. You may not use this software, in whole or // in part, in support of any commercial product without the express written consent of the author. // There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is". // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // #if !defined(_TGS_IPH_COMMON_OBJECTS_H_) #define _TGS_IPH_COMMON_OBJECTS_H_ #pragma once #include "TgS COMMON/TgS Common -- OBJECTS.h" // -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. // // Public Functions // -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. // #if TgS_COMPILE_CONSOLE_DEBUG_OUTPUT TgINLINE TgSINT32 tgPM_DBG_ERR_Write_Byte( PC_STg2_Output ptgOut, C_TgUINT08 ptbUnused ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_ERR_Write( PC_STg2_Output ptgOut, CPC_TgUINT08 pszText, C_TgSINT32 _niText ) { TgSINT32 niText = _niText; TgCHAR szBuffer[1024]; while (0 <= niText) { tgSZ_CopyN( szBuffer, 1024, (CP_TgCHAR)pszText, (niText / sizeof(TgCHAR)) % 1024 ); niText -= 1024; tgTM_Output_Debug_String( szBuffer ); }; return (0); } TgINLINE TgSINT32 tgPM_DBG_ERR_Seek( PC_STg2_Output ptgOut, C_ETgIO_SEEK etgSeek, C_TgSINT32 iPos ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_OUT_Write_Byte( PC_STg2_Output ptgOut, C_TgUINT08 ptbUnused ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_OUT_Write( PC_STg2_Output ptgOut, CPC_TgUINT08 pszText, C_TgSINT32 _niText ) { TgSINT32 niText = _niText; TgCHAR szBuffer[1024]; while (0 <= niText) { tgSZ_CopyN( szBuffer, 1024, (CP_TgCHAR)pszText, (niText / sizeof(TgCHAR)) % 1024 ); niText -= 1023; tgTM_Output_Debug_String( szBuffer ); }; return (0); } TgINLINE TgSINT32 tgPM_DBG_OUT_Seek( PC_STg2_Output ptgOut, C_ETgIO_SEEK etgSeek, C_TgSINT32 iPos ) { return 0; } #else TgINLINE TgSINT32 tgPM_DBG_ERR_Write_Byte( PC_STg2_Output ptgOut, C_TgUINT08 ptbUnused ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_ERR_Write( PC_STg2_Output ptgOut, CPC_TgUINT08 pszText, C_TgSINT32 _niText ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_ERR_Seek( PC_STg2_Output ptgOut, C_ETgIO_SEEK etgSeek, C_TgSINT32 iPos ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_OUT_Write_Byte( PC_STg2_Output ptgOut, C_TgUINT08 ptbUnused ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_OUT_Write( PC_STg2_Output ptgOut, CPC_TgUINT08 pszText, C_TgSINT32 _niText ) { return 0; } TgINLINE TgSINT32 tgPM_DBG_OUT_Seek( PC_STg2_Output ptgOut, C_ETgIO_SEEK etgSeek, C_TgSINT32 iPos ) { return 0; } #endif #endif // END ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////