From e41f2d445ac600068c482d5840d44c79f7b3f10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 14 Nov 2017 17:46:30 -0800 Subject: [PATCH] Cleanup. --- scripts/bx.lua | 5 +++++ src/bx_p.h | 2 +- src/dtoa.cpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/bx.lua b/scripts/bx.lua index 4c5ff64..0f2f3ef 100644 --- a/scripts/bx.lua +++ b/scripts/bx.lua @@ -17,6 +17,11 @@ project "bx" path.join(BX_DIR, "src/**.cpp"), } + configuration { "Debug" } + defines { + "BX_CONFIG_DEBUG=1", + } + configuration { "linux-*" } buildoptions { "-fPIC", diff --git a/src/bx_p.h b/src/bx_p.h index 81580e1..df37a2c 100644 --- a/src/bx_p.h +++ b/src/bx_p.h @@ -7,7 +7,7 @@ #define BX_P_H_HEADER_GUARD #ifndef BX_CONFIG_DEBUG -# define BX_CONFIG_DEBUG 1 +# define BX_CONFIG_DEBUG 0 #endif // BX_CONFIG_DEBUG #if BX_CONFIG_DEBUG diff --git a/src/dtoa.cpp b/src/dtoa.cpp index a09fa5b..7a2ab2f 100644 --- a/src/dtoa.cpp +++ b/src/dtoa.cpp @@ -224,7 +224,7 @@ namespace bx uint32_t index = static_cast( (k >> 3) + 1); *K = -(-348 + static_cast(index << 3) ); // decimal exponent no need lookup table - BX_CHECK(index < sizeof(s_kCachedPowers_F) / sizeof(s_kCachedPowers_F[0]) ); + BX_CHECK(index < sizeof(s_kCachedPowers_F) / sizeof(s_kCachedPowers_F[0]), ""); return DiyFp(s_kCachedPowers_F[index], s_kCachedPowers_E[index]); }