Branimir Karadžić 8 years ago
parent
commit
e41f2d445a
3 changed files with 7 additions and 2 deletions
  1. 5 0
      scripts/bx.lua
  2. 1 1
      src/bx_p.h
  3. 1 1
      src/dtoa.cpp

+ 5 - 0
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",

+ 1 - 1
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

+ 1 - 1
src/dtoa.cpp

@@ -224,7 +224,7 @@ namespace bx
 		uint32_t index = static_cast<uint32_t>( (k >> 3) + 1);
 		*K = -(-348 + static_cast<int32_t>(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]);
 	}