Some debug stuff

This commit is contained in:
ineed bots
2023-09-05 01:19:27 -06:00
parent 5e51712a02
commit 601a661fe0
10 changed files with 165 additions and 1 deletions

View File

@ -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