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:
parent
ee27f6fd02
commit
035d4e507f
1 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue