mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed missing define.
This commit is contained in:
parent
612eb2f7ed
commit
a59593b1d2
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||||
|
|
14
src/bgfx_p.h
14
src/bgfx_p.h
|
@ -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) ) \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue