mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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
|
#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