mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Added NoThreadExitWait Rt option for DLLs
This commit is contained in:
parent
177b5b7254
commit
b2ab1b1f62
7 changed files with 36 additions and 5 deletions
|
@ -118,6 +118,11 @@ namespace System
|
|||
{
|
||||
sModuleHandle = handle;
|
||||
}
|
||||
[AlwaysInclude]
|
||||
static void AddRtFlags(int32 flags)
|
||||
{
|
||||
Runtime.[Friend]sExtraFlags |= (.)flags;
|
||||
}
|
||||
|
||||
public static T* AllocRawArrayUnmarked<T>(int size)
|
||||
{
|
||||
|
|
|
@ -279,14 +279,17 @@ namespace System
|
|||
ObjectHasDebugFlags = 1,
|
||||
LeakCheck = 2,
|
||||
SilentCrash = 4,
|
||||
DebugAlloc = 8
|
||||
DebugAlloc = 8,
|
||||
NoThreadExitWait = 0x10
|
||||
}
|
||||
|
||||
static RtFlags sExtraFlags;
|
||||
|
||||
public static this()
|
||||
{
|
||||
BfRtCallbacks.sCallbacks.Init();
|
||||
|
||||
RtFlags flags = default;
|
||||
RtFlags flags = sExtraFlags;
|
||||
#if BF_ENABLE_OBJECT_DEBUG_FLAGS
|
||||
flags |= .ObjectHasDebugFlags;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue