Skip to content

Commit 51c3264

Browse files
committedOct 26, 2021
Fixed assert macros, and improved error handling.
1 parent 11c3c5e commit 51c3264

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+226
-154
lines changed
 

‎include/bx/bx.h

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "platform.h"
1616
#include "config.h"
1717
#include "macros.h"
18+
#include "debug.h"
1819

1920
///
2021
#define BX_COUNTOF(_x) sizeof(bx::CountOfRequireArrayArgumentT(_x) )

‎include/bx/config.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
#ifndef BX_CONFIG_H_HEADER_GUARD
77
#define BX_CONFIG_H_HEADER_GUARD
88

9-
#include "bx.h"
9+
#ifndef BX_CONFIG_DEBUG
10+
# error "BX_CONFIG_DEBUG must be defined in build script!"
11+
#endif // BX_CONFIG_DEBUG
1012

1113
#ifndef BX_CONFIG_ALLOCATOR_DEBUG
12-
# define BX_CONFIG_ALLOCATOR_DEBUG 0
13-
#endif // BX_CONFIG_DEBUG_ALLOC
14+
# define BX_CONFIG_ALLOCATOR_DEBUG BX_CONFIG_DEBUG
15+
#endif // BX_CONFIG_ALLOCATOR_DEBUG
1416

1517
#ifndef BX_CONFIG_SUPPORTS_THREADING
1618
# define BX_CONFIG_SUPPORTS_THREADING !(0 \

0 commit comments

Comments
 (0)
Please sign in to comment.