diff options
Diffstat (limited to 'include/std')
-rw-r--r-- | include/std/misc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/std/misc.h b/include/std/misc.h index 2549c22..b1932d5 100644 --- a/include/std/misc.h +++ b/include/std/misc.h @@ -8,15 +8,15 @@ #ifdef AMAL_PEDANTIC #define throw_debug_msg do {} while(0) #else - #define throw_debug_msg do { amal_log_error("Throwing from %s:%d", __FUNCTION__, __LINE__); } while(0) + #define throw_debug_msg do { amal_log_error("Throwing from %s:%d", __FILE__, __LINE__); } while(0) #endif #ifdef AMAL_PEDANTIC #define return_if_debug_msg do {} while(0) #define cleanup_if_debug_msg do {} while(0) #else - #define return_if_debug_msg do { amal_log_error("Return from %s:%d", __FUNCTION__, __LINE__); } while(0) - #define cleanup_if_debug_msg do { amal_log_error("cleanup from %s:%d", __FUNCTION__, __LINE__); } while(0) + #define return_if_debug_msg do { amal_log_error("Return from %s:%d", __FILE__, __LINE__); } while(0) + #define cleanup_if_debug_msg do { amal_log_error("cleanup from %s:%d", __FILE__, __LINE__); } while(0) #endif #define return_if_error(result) \ |