diff options
| author | ruki <[email protected]> | 2024-01-13 21:47:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-13 21:47:48 +0800 |
| commit | 0d800690687871e2794e92fbcc8a6be7b6320355 (patch) | |
| tree | cd435fae745bb3a22d32f3e97319cb883909a3a7 /core/src | |
| parent | 148b2358773a35d7b7ace9362eb6d4204596234f (diff) | |
add debug macro
Diffstat (limited to 'core/src')
| -rwxr-xr-x | core/src/tbox/xmake.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/tbox/xmake.sh b/core/src/tbox/xmake.sh index ee9a162bb..310a66f8d 100755 --- a/core/src/tbox/xmake.sh +++ b/core/src/tbox/xmake.sh @@ -27,3 +27,6 @@ target "tbox" set_configvar "TB_CONFIG_FORCE_UTF8" 1 set_configvar "TB_CONFIG_TYPE_HAVE_FLOAT" 1 add_includedirs "inc/${plat}" "{public}" + if is_mode "debug"; then + add_defines "__tb_debug__" + fi |
