mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-17 02:20:05 +00:00
added INITSTRUCT to zero-out data
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
#include <locale>
|
||||
#include <codecvt>
|
||||
|
||||
// yes this is ugly, but this is needed to zero out the memory so we don't have random stackdata in our structs.
|
||||
#define INITSTRUCT(T, x) T x; \
|
||||
memset(&x, 0, sizeof(T));
|
||||
|
||||
// TODO: rewrite U16toU8 & U8toU16 to not use codecvt
|
||||
|
||||
std::string U16toU8(char16_t* src);
|
||||
|
||||
Reference in New Issue
Block a user