Files
Client/Library/dxx8/samples/Multimedia/DirectInput/DIConfig/ltrace.h
LGram16 e067522598 Initial commit: ROW Client source code
Game client codebase including:
- CharacterActionControl: Character and creature management
- GlobalScript: Network, items, skills, quests, utilities
- RYLClient: Main client application with GUI and event handlers
- Engine: 3D rendering engine (RYLGL)
- MemoryManager: Custom memory allocation
- Library: Third-party dependencies (DirectX, boost, etc.)
- Tools: Development utilities

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:24:34 +09:00

64 lines
1007 B
C++

#ifndef __LTRACE_H__
#define __LTRACE_H__
#define NO_LTRACE
/*#ifndef NO_LTRACE
#ifdef NDEBUG
#error I want ltrace!
#define NO_LTRACE
#endif
#endif*/
#ifndef NO_LTRACE
#ifndef THIS_FILE
const TCHAR THIS_FILE[] = __FILE__;
#endif
class __CLTraceScope
{
public:
__CLTraceScope(LPCTSTR, LPCTSTR, int);
__CLTraceScope(LPCTSTR, int);
~__CLTraceScope();
void scope(LPCTSTR, ...);
void ltrace(LPCTSTR, ...);
private:
LPCTSTR spacing();
LPCTSTR m_scope, m_file;
int m_line;
int m_depth;
static int s_depth;
// __CLTraceScope *m_pprev, *m_pnext;
// static __CLTraceScope *s_pfirst, *s_plast;
};
#define LTSCOPE0(scope) __CLTraceScope __localscope(scope, THIS_FILE, __LINE__)
#define LTSCOPE __CLTraceScope __localscope(THIS_FILE, __LINE__); __localscope.scope
#define LTRACE __localscope.ltrace
#else
inline void __localscope_dummy(LPCTSTR, ...) {}
#define LTSCOPE0(scope) (void(0))
#define LTSCOPE ; __localscope_dummy
#define LTRACE __localscope_dummy
#endif
#endif //__LTRACE_H__