You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#define__FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) /* Gets the name of the file. */
17
+
#defineU_DEBUG/* Comment out to enable/disable debugging. */
18
+
#ifdefU_DEBUG
19
+
#defineDEBUG_PRINTLN(message, ...) printf("[%s/%s()] " message "\n", __FILENAME__, __func__, ##__VA_ARGS__) /* Prints an error message in the format: "[file_name.c/function()] {message}"*/
20
+
#else
21
+
#defineDEBUG_PRINTLN(message, ...) /* If debugging is turned off, macro doesn't need to expand to anything. */
22
+
#endif
23
+
24
+
/**
25
+
* @brief Checks if a function is successful when called. DEBUG_PRINTLNs an error message if it fails.
0 commit comments