CSEngine
Loading...
Searching...
No Matches
SafeLog Class Reference

Static Public Member Functions

static void Log (const char *log)
 

Detailed Description

Definition at line 3 of file SafeLog.h.

Member Function Documentation

◆ Log()

void SafeLog::Log ( const char * log)
static

Definition at line 24 of file SafeLog.cpp.

24 {
25#ifdef __CSE_EDITOR__
26 const auto& editorCore = CSEditor::EEngineCore::getEditorInstance();
27 if(editorCore->IsReady()) editorCore->AddLog(log);
28 else puts(log);
29#elif _WIN32
30 OutputDebugStringA(log);
31 puts(log);
32#elif __ANDROID__
33 LOGE(log, 0);
34#elif __linux__
35 puts(log);
36#elif __EMSCRIPTEN__
37 puts(log);
38#elif __APPLE_CC__
39 puts(log);
40#endif
41}

The documentation for this class was generated from the following files: