]> Dogcows Code - chaz/yoink/blobdiff - src/moof/debug.hh
compression functions; fixed texture seams
[chaz/yoink] / src / moof / debug.hh
index ef42dff33a7c22ab8d7e0b962aa2c19f526e98d7..a131ce950458ad2cc7d5f06fc41de5f729b6c889 100644 (file)
@@ -20,7 +20,9 @@
  * Debugging facilities.
  */
 
-
+#define STRINGIZE(X) #X
+#define QUOTE_MACRO(X) STRINGIZE(X)
+#define FILELINE __FILE__":"QUOTE_MACRO(__LINE__)
 
 #undef ASSERT
 #ifdef NDEBUG
@@ -31,9 +33,9 @@
  * assertion is false.
  * \param X test to perform.
  */
-#define ASSERT(X) if (!(X)) moof::log_error \
-       << "false assertion at " << __FILE__ << ":" << __LINE__ << ", " \
-       << #X, exit(1)
+#define ASSERT(X) \
+       if (!(X)) moof::log_error \
+       << "false assertion at " << FILELINE << ", " << #X, std::terminate()
 #endif
 
 
This page took 0.020788 seconds and 4 git commands to generate.