Fixed missing define.

This commit is contained in:
Branimir Karadzic 2014-08-23 14:01:52 -07:00
parent 612eb2f7ed
commit a59593b1d2
3 changed files with 9 additions and 9 deletions

View file

@ -130,7 +130,7 @@ namespace bgfx
}; };
#ifndef BGFX_CONFIG_MEMORY_TRACKING #ifndef BGFX_CONFIG_MEMORY_TRACKING
# define BGFX_CONFIG_MEMORY_TRACKING (BGFX_CONFIG_DEBUG && BX_CONFIG_SUPPORTED_THREADING) # define BGFX_CONFIG_MEMORY_TRACKING (BGFX_CONFIG_DEBUG && BX_CONFIG_SUPPORTS_THREADING)
#endif // BGFX_CONFIG_MEMORY_TRACKING #endif // BGFX_CONFIG_MEMORY_TRACKING
class AllocatorStub : public bx::ReallocatorI class AllocatorStub : public bx::ReallocatorI

View file

@ -6,6 +6,13 @@
#ifndef BGFX_P_H_HEADER_GUARD #ifndef BGFX_P_H_HEADER_GUARD
#define BGFX_P_H_HEADER_GUARD #define BGFX_P_H_HEADER_GUARD
#if BGFX_CONFIG_DEBUG
# define BX_TRACE _BX_TRACE
# define BX_WARN _BX_WARN
# define BX_CHECK _BX_CHECK
# define BX_CONFIG_ALLOCATOR_DEBUG 1
#endif // BGFX_CONFIG_DEBUG
#include "bgfx.h" #include "bgfx.h"
#include "config.h" #include "config.h"
@ -44,13 +51,6 @@ namespace bgfx
} \ } \
BX_MACRO_BLOCK_END BX_MACRO_BLOCK_END
#if BGFX_CONFIG_DEBUG
# define BX_TRACE _BX_TRACE
# define BX_WARN _BX_WARN
# define BX_CHECK _BX_CHECK
# define BX_CONFIG_ALLOCATOR_DEBUG 1
#endif // BGFX_CONFIG_DEBUG
#define BGFX_FATAL(_condition, _err, _format, ...) \ #define BGFX_FATAL(_condition, _err, _format, ...) \
BX_MACRO_BLOCK_BEGIN \ BX_MACRO_BLOCK_BEGIN \
if (!BX_IGNORE_C4127(_condition) ) \ if (!BX_IGNORE_C4127(_condition) ) \

View file

@ -6,7 +6,7 @@
#ifndef BGFX_CONFIG_H_HEADER_GUARD #ifndef BGFX_CONFIG_H_HEADER_GUARD
#define BGFX_CONFIG_H_HEADER_GUARD #define BGFX_CONFIG_H_HEADER_GUARD
#include <bx/platform.h> #include <bx/config.h>
#ifndef BGFX_CONFIG_DEBUG #ifndef BGFX_CONFIG_DEBUG
# define BGFX_CONFIG_DEBUG 0 # define BGFX_CONFIG_DEBUG 0