Ver código fonte

Changed GP_ASSERT to not call printError.

Darryl Gough 13 anos atrás
pai
commit
c055e5a77b
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      gameplay/src/Base.h

+ 1 - 6
gameplay/src/Base.h

@@ -60,12 +60,7 @@ extern void printError(const char* format, ...);
 
 // Assert macros.
 #ifdef _DEBUG
-#define GP_ASSERT(expression) do { \
-    if (!(expression)) \
-    { \
-        printError("%s -- Assertion '" #expression "' failed.\n", __current__func__); \
-        assert(expression); \
-    } } while (0)
+#define GP_ASSERT(expression) assert(expression)
 #else
 #define GP_ASSERT(expression)
 #endif