small CNStructs.hpp refactor

This commit is contained in:
CPunch 2020-08-20 11:37:47 -05:00
parent 7cf239e3af
commit 93d973bf21

View File

@ -22,16 +22,12 @@
// TODO: rewrite U16toU8 & U8toU16 to not use codecvt // TODO: rewrite U16toU8 & U8toU16 to not use codecvt
std::string U16toU8(char16_t* src); std::string U16toU8(char16_t* src);
int U8toU16(std::string src, char16_t* des); // returns number of char16_t that was written at des
// returns number of char16_t that was written at des
int U8toU16(std::string src, char16_t* des);
uint64_t getTime(); uint64_t getTime();
//#define CNPROTO_VERSION_0728 //#define CNPROTO_VERSION_0728
#define CNPROTO_VERSION_0104 #define CNPROTO_VERSION_0104
// ========================================================[[ beta-20100104 ]]========================================================
#if defined(CNPROTO_VERSION_0104) #if defined(CNPROTO_VERSION_0104)
#include "structs/0104.hpp" #include "structs/0104.hpp"
#elif defined(CNPROTO_VERSION_0728) #elif defined(CNPROTO_VERSION_0728)