Code::Blocks  SVN r11506
Macros | Variables
cclogger.cpp File Reference
#include "cclogger.h"
#include <wx/event.h>
#include <wx/textfile.h>
#include <wx/utils.h>
#include <logmanager.h>
#include <globals.h>
Include dependency graph for cclogger.cpp:

Go to the source code of this file.

Macros

#define TRACE_TO_FILE(msg)
 
#define TRACE_THIS_TO_FILE(msg)
 

Variables

bool g_EnableDebugTrace = false
 Toggles tracing into file. More...
 
bool g_EnableDebugTraceFile = false
 
const wxString g_DebugTraceFile = wxEmptyString
 Trace file name (if above is enabled). More...
 
long g_idCCAddToken = wxNewId()
 
long g_idCCLogger = wxNewId()
 
long g_idCCDebugLogger = wxNewId()
 

Macro Definition Documentation

◆ TRACE_THIS_TO_FILE

#define TRACE_THIS_TO_FILE (   msg)
Value:
{ \
wxTextFile f(g_DebugTraceFile); \
if ((f.Exists() && f.Open()) || (!f.Exists() && f.Create())) \
{ \
f.AddLine(msg); \
bool exp = f.Write() && f.Close() \
cbAssert(exp); \
} \
} \
bool IsEmpty() const
const wxString g_DebugTraceFile
Trace file name (if above is enabled).
Definition: cclogger.cpp:23

Definition at line 39 of file cclogger.cpp.

◆ TRACE_TO_FILE

#define TRACE_TO_FILE (   msg)
Value:
{ \
wxTextFile f(g_DebugTraceFile); \
if ((f.Exists() && f.Open()) || (!f.Exists() && f.Create())) \
{ \
f.AddLine(msg); \
bool exp = f.Write() && f.Close(); \
cbAssert(exp); \
} \
} \
bool IsEmpty() const
const wxString g_DebugTraceFile
Trace file name (if above is enabled).
Definition: cclogger.cpp:23
bool g_EnableDebugTraceFile
Definition: cclogger.cpp:22

Definition at line 27 of file cclogger.cpp.

Variable Documentation

◆ g_DebugTraceFile

const wxString g_DebugTraceFile = wxEmptyString

Trace file name (if above is enabled).

Definition at line 23 of file cclogger.cpp.

◆ g_EnableDebugTrace

bool g_EnableDebugTrace = false

Toggles tracing into file.

Definition at line 21 of file cclogger.cpp.

◆ g_EnableDebugTraceFile

bool g_EnableDebugTraceFile = false

Definition at line 22 of file cclogger.cpp.

◆ g_idCCAddToken

long g_idCCAddToken = wxNewId()

Definition at line 24 of file cclogger.cpp.

◆ g_idCCDebugLogger

long g_idCCDebugLogger = wxNewId()

Definition at line 26 of file cclogger.cpp.

Referenced by CodeCompletion::CodeCompletion(), and CodeCompletion::~CodeCompletion().

◆ g_idCCLogger

long g_idCCLogger = wxNewId()

Definition at line 25 of file cclogger.cpp.

Referenced by CodeCompletion::CodeCompletion(), and CodeCompletion::~CodeCompletion().