2016-08-29 22:31:11 +02:00
|
|
|
/*
|
2017-04-11 08:16:10 +02:00
|
|
|
* Copyright 2011-2017 Branimir Karadzic. All rights reserved.
|
2016-08-29 22:31:11 +02:00
|
|
|
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DBG_H_HEADER_GUARD
|
|
|
|
#define DBG_H_HEADER_GUARD
|
|
|
|
|
2017-04-11 08:16:10 +02:00
|
|
|
#include <bx/debug.h>
|
2016-08-29 22:31:11 +02:00
|
|
|
|
|
|
|
#define DBG_STRINGIZE(_x) DBG_STRINGIZE_(_x)
|
|
|
|
#define DBG_STRINGIZE_(_x) #_x
|
|
|
|
#define DBG_FILE_LINE_LITERAL "" __FILE__ "(" DBG_STRINGIZE(__LINE__) "): "
|
2017-04-11 08:16:10 +02:00
|
|
|
#define DBG(_format, ...) bx::debugPrintf(DBG_FILE_LINE_LITERAL "" _format "\n", ##__VA_ARGS__)
|
2016-08-29 22:31:11 +02:00
|
|
|
|
|
|
|
#endif // DBG_H_HEADER_GUARD
|