2013-02-22 09:07:31 +04:00
|
|
|
/*
|
2024-01-14 12:56:36 +03:00
|
|
|
* Copyright 2011-2024 Branimir Karadzic. All rights reserved.
|
2022-01-15 22:59:06 +03:00
|
|
|
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
|
2013-02-22 09:07:31 +04:00
|
|
|
*/
|
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#ifndef DBG_H_HEADER_GUARD
|
|
|
|
#define DBG_H_HEADER_GUARD
|
2013-02-22 09:07:31 +04:00
|
|
|
|
2017-01-21 02:06:51 +03:00
|
|
|
#include <bx/debug.h>
|
2013-02-22 09:07:31 +04:00
|
|
|
|
|
|
|
#define DBG_STRINGIZE(_x) DBG_STRINGIZE_(_x)
|
|
|
|
#define DBG_STRINGIZE_(_x) #_x
|
|
|
|
#define DBG_FILE_LINE_LITERAL "" __FILE__ "(" DBG_STRINGIZE(__LINE__) "): "
|
2017-01-21 02:06:51 +03:00
|
|
|
#define DBG(_format, ...) bx::debugPrintf(DBG_FILE_LINE_LITERAL "" _format "\n", ##__VA_ARGS__)
|
2013-02-22 09:07:31 +04:00
|
|
|
|
2013-11-15 07:10:10 +04:00
|
|
|
#endif // DBG_H_HEADER_GUARD
|