Skip to content

Commit

Permalink
Experimenting with compile-time debug information.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Cole committed Apr 24, 2024
1 parent b2b4d8b commit 79a3a1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions YSI_Core/y_core/y_core_entry.inc
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ Optional plugins:
#define YSI_VERSION_MINOR 10
#define YSI_VERSION_BUILD 0006

stock const YSI_VERSION_BCD = (YSI_VERSION_MAJOR << 24) | (YSI_VERSION_MINOR << 16) | (YSI_VERSION_BUILD);
//static YSI_version_5_10_0006 = YSI_VERSION_BCD;
const YSI_VERSION_BCD = (YSI_VERSION_MAJOR << 24) | (YSI_VERSION_MINOR << 16) | (YSI_VERSION_BUILD);

//#pragma deprecated Ignore this warning, it is for help debugging. YSI v5.10.0006
//YSI_Version()
//{
// return YSI_VERSION_BCD;
//}

#define YSI_VERSION #YSI_VERSION_MAJOR "." #YSI_VERSION_MINOR "." #YSI_VERSION_BUILD

Expand Down
2 changes: 2 additions & 0 deletions YSI_Core/y_core/y_scriptinit_impl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,8 @@ forward bool:Debug_Enable();

static bool:ScriptInit_CallOnCodeInit(bool:jit, bool:fs)
{
//new compile_time_version_reporting = YSI_Version();
//#pragma unused compile_time_version_reporting
Debug_Enable();
#if defined _DEBUG
#if _DEBUG > 0
Expand Down

0 comments on commit 79a3a1b

Please sign in to comment.