Skip to content

Commit 4e17de0

Browse files
committed
void* VarArgs on aarch64 macOS
1 parent f9185ed commit 4e17de0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BeefLibs/corlib/src/Internal.bf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace System
3232
[CRepr]
3333
struct VarArgs
3434
{
35-
#if BF_PLATFORM_WINDOWS || BF_PLATFORM_WASM
35+
#if BF_PLATFORM_WINDOWS || BF_PLATFORM_WASM || (BF_PLATFORM_MACOS && BF_MACHINE_AARCH64)
3636
void* mVAList;
3737
#else
3838
int[5] mVAList; // Conservative size for va_list
@@ -67,7 +67,7 @@ namespace System
6767

6868
public void* ToVAList() mut
6969
{
70-
#if BF_PLATFORM_WINDOWS || BF_PLATFORM_WASM
70+
#if BF_PLATFORM_WINDOWS || BF_PLATFORM_WASM || (BF_PLATFORM_MACOS && BF_MACHINE_AARCH64)
7171
return mVAList;
7272
#else
7373
return &mVAList;

0 commit comments

Comments
 (0)