mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Changed ProgramStart/ProgramEnd to ensure StaticInits get called
This commit is contained in:
parent
07b993d824
commit
7882632e93
6 changed files with 19 additions and 19 deletions
|
@ -629,9 +629,7 @@ BF_EXPORT void BF_CALLTYPE Debugger_Create()
|
|||
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_CHECK_EVERY_16_DF);
|
||||
//TODO: _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF /*| _CRTDBG_CHECK_EVERY_16_DF*/);
|
||||
//_CrtSetAllocHook(BfAllocHook);
|
||||
|
||||
BfIRCodeGen::StaticInit();
|
||||
|
||||
|
||||
#ifdef BF_PLATFORM_WINDOWS
|
||||
_CrtMemCheckpoint(&gStartMemCheckpoint);
|
||||
#endif
|
||||
|
@ -683,7 +681,12 @@ BF_EXPORT void BF_CALLTYPE Debugger_Delete()
|
|||
#endif
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE Debugger_ProgramDone()
|
||||
BF_EXPORT void BF_CALLTYPE IDEHelper_ProgramStart()
|
||||
{
|
||||
BfIRCodeGen::StaticInit();
|
||||
}
|
||||
|
||||
BF_EXPORT void BF_CALLTYPE IDEHelper_ProgramDone()
|
||||
{
|
||||
//TODO:
|
||||
//::MessageBoxA(NULL, "Done", "Done", MB_OK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue