2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CBASICS
|
|
|
|
#define _CBASICS
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
namespace CBasics {
|
2022-10-02 07:43:00 +00:00
|
|
|
void Init();
|
2022-04-10 00:17:06 +00:00
|
|
|
char* Stringize(const char* fmt, ...);
|
2022-10-09 20:54:18 +00:00
|
|
|
inline void SwapBytes(uchar* v) {}
|
|
|
|
inline float SwapBytes(float f) {
|
|
|
|
u8* tmp = reinterpret_cast<u8*>(&f);
|
|
|
|
SwapBytes(tmp);
|
|
|
|
return *reinterpret_cast<float*>(tmp);
|
|
|
|
}
|
2022-10-09 05:13:17 +00:00
|
|
|
}; // namespace CBasics
|
2022-04-10 00:17:06 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CBASICS
|