mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +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
|
#if BF_PLATFORM_WINDOWS
|
||||||
void* mVAList;
|
void* mVAList;
|
||||||
#else
|
#else
|
||||||
int[3] mVAList; // Conservative size for va_list
|
int[5] mVAList; // Conservative size for va_list
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[Intrinsic("va_start")]
|
[Intrinsic("va_start")]
|
||||||
|
@ -65,6 +65,11 @@ namespace System
|
||||||
return &mVAList;
|
return &mVAList;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void* ToVAListPtr() mut
|
||||||
|
{
|
||||||
|
return &mVAList;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[AlwaysInclude]
|
[AlwaysInclude]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue