From 59edd60ebec61bf24dd27063f85bcd049fd0af13 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 19 Jan 2017 16:20:13 -0500 Subject: killed common, more inventory, other random stuff --- include/debug.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/debug.hpp (limited to 'include/debug.hpp') diff --git a/include/debug.hpp b/include/debug.hpp new file mode 100644 index 0000000..e773a51 --- /dev/null +++ b/include/debug.hpp @@ -0,0 +1,19 @@ +/** + * @file debug.hpp + * @brief Debugging utilities + */ +#ifndef DEBUG_HPP_ +#define DEBUG_HPP_ + +/** + * Prints a formatted string to the terminal with file and line number, for debugging + */ +#define DEBUG_printf(message, ...) DEBUG_prints(__FILE__, __LINE__, message, __VA_ARGS__) + +/** + * Prints a formatted debug message to the console, along with the callee's file and line + * number. + */ +void DEBUG_prints(const char* file, int line, const char *s,...); + +#endif // DEBUG_HPP_ -- cgit v1.2.3