This commit is contained in:
parent
38483a8809
commit
b74ebc6668
@ -10,10 +10,10 @@ cd ..
|
|||||||
cp iw4/scripts/mp/_jump.gsc build/iw4
|
cp iw4/scripts/mp/_jump.gsc build/iw4
|
||||||
|
|
||||||
# replace gsc extension with cpp so GCC is happy
|
# replace gsc extension with cpp so GCC is happy
|
||||||
mv iw5/scripts/mp/_jump.gsc iw5/scripts/mp/_jump.cpp
|
mv iw5/scripts/mp/_jump.c iw5/scripts/mp/_jump.cpp
|
||||||
|
|
||||||
# perform macro expansion
|
# perform macro expansion
|
||||||
g++ -std=c++20 -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.cpp" -o _jump.in
|
gcc -D_UTILITY_DEBUG -DIW5 -DCI -E "iw5/scripts/mp/_jump.c" -o _jump.in
|
||||||
|
|
||||||
# remove things gcc added to the file
|
# remove things gcc added to the file
|
||||||
python3 .gitea/scripts/clean.py _jump.in _jump.gsc
|
python3 .gitea/scripts/clean.py _jump.in _jump.gsc
|
||||||
|
@ -40,13 +40,9 @@
|
|||||||
/* Do not use the + to concatenate strings, let the GSC VM do it for you */
|
/* Do not use the + to concatenate strings, let the GSC VM do it for you */
|
||||||
/* Other clients will have print available */
|
/* Other clients will have print available */
|
||||||
#if defined(IW4MP)
|
#if defined(IW4MP)
|
||||||
#define PRINT_FUNC printConsole
|
#define PRINT_FUNC_NAME printConsole
|
||||||
#else
|
#else
|
||||||
#define PRINT_FUNC print
|
#define PRINT_FUNC_NAME print
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(TOOL)
|
|
||||||
PRINT_FUNC( format __VA_OPT__(,) __VA_ARGS__ )
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _UTILITY_DEBUG
|
#ifdef _UTILITY_DEBUG
|
||||||
@ -54,7 +50,7 @@
|
|||||||
assertEx( cond, msg )
|
assertEx( cond, msg )
|
||||||
|
|
||||||
#define DEBUG_PRINT(msg) \
|
#define DEBUG_PRINT(msg) \
|
||||||
PRINT_FUNC(msg)
|
PRINT_FUNC_NAME( msg )
|
||||||
#else
|
#else
|
||||||
/* The following are "empty" defines with gsc-tool */
|
/* The following are "empty" defines with gsc-tool */
|
||||||
#define _VERIFY(cond, msg)
|
#define _VERIFY(cond, msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user