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-08-18 21:54:53 +03:00
parent 7655c1cb98
commit 2fb0f851c0

View File

@ -506,6 +506,24 @@ enum EntityType
#define SQMOD_NODISCARD
#endif
/* ------------------------------------------------------------------------------------------------
* FLOAT SELECTION
*/
#ifdef SQUSEDOUBLE
#define SQMOD_DOUBLE_ONLY(X) X
#define SQMOD_EXCEPT_DOUBLE(X)
#define SQMOD_FLOAT_ONLY(X)
#define SQMOD_EXCEPT_FLOAT(X) X
#else
#define SQMOD_DOUBLE_ONLY(X) X
#define SQMOD_EXCEPT_DOUBLE(X)
#define SQMOD_FLOAT_ONLY(X)
#define SQMOD_EXCEPT_FLOAT(X) X
#endif
#define SQMOD_DOUBLE_OR(D, F) SQMOD_DOUBLE_ONLY(D) SQMOD_EXCEPT_DOUBLE(F)
#define SQMOD_FLOAT_OR(F, D) SQMOD_FLOAT_ONLY(F) SQMOD_EXCEPT_FLOAT(D)
/* ------------------------------------------------------------------------------------------------
* DEBUG SELECTION
*/