GL3: Deactivate STUB_ONCE() messages

This commit is contained in:
Daniel Gibson 2017-04-18 17:08:17 +02:00
parent 0608eed7c3
commit 6e7dc59622

View file

@ -45,9 +45,7 @@
#include "HandmadeMath.h" #include "HandmadeMath.h"
#define STUB(msg) \ #if 0 // only use this for development ..
R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg)
#define STUB_ONCE(msg) do { \ #define STUB_ONCE(msg) do { \
static int show=1; \ static int show=1; \
if(show) { \ if(show) { \
@ -55,6 +53,9 @@
R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg); \ R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg); \
} \ } \
} while(0); } while(0);
#else // .. so make this a no-op in released code
#define STUB_ONCE(msg)
#endif
// a wrapper around glVertexAttribPointer() to stay sane // a wrapper around glVertexAttribPointer() to stay sane
// (caller doesn't have to cast to GLintptr and then void*) // (caller doesn't have to cast to GLintptr and then void*)