mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge pull request #1525 from eveningstarinc/hunterbridges/VAListFix
VarArgs multiplatform compatibility tweak
This commit is contained in:
commit
7aabf04e40
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