mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-05 18:10:09 +03:00
Logging cleanup (#69)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 * Output/Logging Overhaul * Added StandardOut class * Renamed LOGX macros to LOG_X * Removed LogMsg macros in favor of LOG_X * Added console window for debug Windows builds * Updated Xcode Project + StandardOut.hpp + StandardOut.cpp * StandardOut_windows * Replaced the Windows #ifdefs in StandardOut with StandardOut_windows --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -252,14 +252,14 @@ void xglGenBuffers(GLsizei num, GLuint* buffers)
|
||||
g_GLBuffers[g_NextGLBufferID] = new GLBuffer(g_NextGLBufferID);
|
||||
}
|
||||
|
||||
LogMsg("g_NextGLBufferID=%d", g_NextGLBufferID);
|
||||
LOG_I("g_NextGLBufferID=%d", g_NextGLBufferID);
|
||||
}
|
||||
|
||||
void xglAssert2(bool condition, const char* condstr, const char* file, int line)
|
||||
{
|
||||
if (condition) return;
|
||||
|
||||
LogMsg("Error: Assertion failed at %s:%d: %s", file, line, condstr);
|
||||
LOG_E("Error: Assertion failed at %s:%d: %s", file, line, condstr);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
assert(false);
|
||||
|
||||
Reference in New Issue
Block a user