1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update SqBase.hpp

This commit is contained in:
Sandu Liviu Catalin 2021-02-01 00:45:37 +02:00
parent 602f82b26e
commit 746da6f2d9

View File

@ -6,6 +6,7 @@
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <climits>
#include <cassert> #include <cassert>
#include <string> #include <string>
@ -384,9 +385,16 @@ enum EntityType
#define SQMOD_FORMAT_ATTR(mode, index, first) __attribute__ ((format(mode, index, first))) #define SQMOD_FORMAT_ATTR(mode, index, first) __attribute__ ((format(mode, index, first)))
#ifdef _SQ64 #ifdef _SQ64
#define PRINT_SZ_FMT "llu" // Chances are (u)int64_t is defined as long and not long long
#define PRINT_INT_FMT "lld" #ifdef SQMOD_OS_LINUX && (LONG_MAX == LLONG_MAX)
#define PRINT_UINT_FMT "llu" #define PRINT_SZ_FMT "lu"
#define PRINT_INT_FMT "ld"
#define PRINT_UINT_FMT "lu"
#else
#define PRINT_SZ_FMT "llu"
#define PRINT_INT_FMT "lld"
#define PRINT_UINT_FMT "llu"
#endif
#else #else
#define PRINT_SZ_FMT "u" #define PRINT_SZ_FMT "u"
#define PRINT_INT_FMT "d" #define PRINT_INT_FMT "d"