1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

More BF_RUNTIME_DISABLE fixes

This commit is contained in:
Brian Fiete 2025-02-18 09:51:16 -08:00
parent 375fb2807f
commit 6dc9aeb104
3 changed files with 8 additions and 8 deletions

View file

@ -44,18 +44,18 @@ namespace System.Diagnostics
#endif #endif
} }
#if BF_ENABLE_OBJECT_DEBUG_FLAGS #if !BF_RUNTIME_DISABLE
[CallingConvention(.Cdecl)]
static extern void Write(char8* str, int strLen);
[CallingConvention(.Cdecl)]
static extern void Write(int val);
#else
static void Write(char8* str, int strLen) static void Write(char8* str, int strLen)
{ {
} }
static void Write(int val) static void Write(int val)
{ {
} }
#else
[CallingConvention(.Cdecl)]
static extern void Write(char8* str, int strLen);
[CallingConvention(.Cdecl)]
static extern void Write(int val);
#endif #endif
public static void Write(String line) public static void Write(String line)

View file

@ -669,7 +669,7 @@ namespace System
return null; return null;
} }
public static Object Dbg_ObjectAlloc(ClassVData* classVData, int size, int align, int maxStackTraceDepth) public static Object Dbg_ObjectAlloc(ClassVData* classVData, int size, int align, int maxStackTraceDepth, uint8 flags)
{ {
return null; return null;
} }

View file

@ -1714,7 +1714,7 @@ namespace System.Reflection
int32 stackCount = Compiler.Options.AllocStackCount; int32 stackCount = Compiler.Options.AllocStackCount;
if (mAllocStackCountOverride != 0) if (mAllocStackCountOverride != 0)
stackCount = mAllocStackCountOverride; stackCount = mAllocStackCountOverride;
obj = Internal.Dbg_ObjectAlloc([Friend]mTypeClassVData, arraySize, [Friend]mInstAlign, stackCount); obj = Internal.Dbg_ObjectAlloc([Friend]mTypeClassVData, arraySize, [Friend]mInstAlign, stackCount, 0);
#else #else
void* mem = new [Align(16)] uint8[arraySize]* (?); void* mem = new [Align(16)] uint8[arraySize]* (?);
obj = Internal.UnsafeCastToObject(mem); obj = Internal.UnsafeCastToObject(mem);