X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil-pre.qh;h=d8bd8636ab29e3fb39f02b96a147571fd642761e;hb=ba0988ca930f50286f8cf3b6c114ebc6584964af;hp=1c2c1cc9f266fdb2fdc16ab627e95fd46ca9be18;hpb=635a3c9a8a5c60e09e9449bf53128393d3355f20;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 1c2c1cc9f..d8bd8636a 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -1,23 +1,39 @@ -#ifdef FTEQCC -#pragma flag enable subscope -#pragma flag enable lo -#endif +#ifndef UTIL_PRE_H +#define UTIL_PRE_H -// FTEQCC can do this -#define HAVE_YO_DAWG_CPP +#if defined(CSQC) +#elif defined(MENUQC) +#elif defined(SVQC) +#endif #ifndef NOCOMPAT -//# define WORKAROUND_XON010 -//# define COMPAT_XON010_CHANNELS -//# define COMPAT_XON050_ENGINE -# define COMPAT_NO_MOD_IS_XONOTIC -# define COMPAT_XON060_DONTCRASH_CHECKPVS + #define COMPAT_NO_MOD_IS_XONOTIC #endif -#ifdef FTEQCC -#ifdef WATERMARK -string FTEQCC_SUCKS_WATERMARKS_THROUGH_C60_FULLERENES = WATERMARK(); -#undef WATERMARK -#define WATERMARK FTEQCC_SUCKS_WATERMARKS_THROUGH_C60_FULLERENES +#ifndef QCC_SUPPORT_ACCUMULATE + #ifdef GMQCC + #define QCC_SUPPORT_ACCUMULATE + #endif #endif + +#ifndef QCC_SUPPORT_NIL + #ifdef GMQCC + #define QCC_SUPPORT_NIL + #endif +#endif + +#ifndef QCC_SUPPORT_INT + #define int float + + #define stoi(s) stof(s) + #define itos(s) ftos(s) +#endif + +#ifndef QCC_SUPPORT_BOOL + #define bool float + + // Boolean Constants + const bool true = 1; + const bool false = 0; #endif +#endif \ No newline at end of file