1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

VarArgs multiplatform compatibility tweak

- Increased size of VarArgs.mVAList on non-Windows platforms
- Add ToVAListPtr() which returns &mVAList on all platforms
This commit is contained in:
Hunter Bridges 2022-04-15 18:21:43 -07:00
parent ee27f6fd02
commit 035d4e507f

View file

@ -27,7 +27,7 @@ namespace System
#if BF_PLATFORM_WINDOWS
void* mVAList;
#else
int[3] mVAList; // Conservative size for va_list
int[5] mVAList; // Conservative size for va_list
#endif
[Intrinsic("va_start")]
@ -65,6 +65,11 @@ namespace System
return &mVAList;
#endif
}
public void** ToVAListPtr() mut
{
return &mVAList;
}
}
[AlwaysInclude]