mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-07-05 10:41:54 +00:00
Some debug stuff
This commit is contained in:
@ -10,6 +10,16 @@
|
||||
#define ARRAY_COUNT(arrayn) \
|
||||
((sizeof(arrayn)) / (sizeof(arrayn[0])))
|
||||
|
||||
#ifndef NDEBUG
|
||||
#undef assert
|
||||
#define assert(expr) \
|
||||
if (!!!(expr)) \
|
||||
{ \
|
||||
utils::io::write_file("t4sp-server-plugin/gsc_state_assert.json", get_full_gsc_state_str(game::SCRIPTINSTANCE_SERVER)); \
|
||||
_wassert(_CRT_WIDE(#expr), _CRT_WIDE(__FILE__), (unsigned)(__LINE__)); \
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace game
|
||||
{
|
||||
enum gamemode
|
||||
|
Reference in New Issue
Block a user