]> git.sesse.net Git - casparcg/blobdiff - common/assert.h
[logging] Suppress the logging of full path names in stack traces so that only the...
[casparcg] / common / assert.h
index 79dd587cf78e21ba09c6d45cd0892e51d66d526a..b8819264887212caeebdc26b30a7ad4379e30b46 100644 (file)
@@ -34,7 +34,7 @@
 
 #define CASPAR_VERIFY(expr) do{if(!(expr)){ CASPAR_LOG(warning) << "Assertion Failed: " << \
        CASPAR_VERIFY_EXPR_STR(expr) << " " \
-       << "file:" << __FILE__ << " " \
+       << "file:" << log::remove_source_prefix(__FILE__) << " " \
        << "line:" << __LINE__ << " "; \
        _CASPAR_DBG_BREAK;\
        }}while(0);
@@ -46,4 +46,4 @@
 #define CASPAR_ASSERT(expr) CASPAR_VERIFY(expr)
 #else
 #define CASPAR_ASSERT(expr)
-#endif
\ No newline at end of file
+#endif