warzone2100/lib/script
Giel van Schijndel 6bdbda9343 Allow code passing and retrieving of enums as vararg parameters in C++ as well.
In C++ enums are treated differently from integers in some cases, causing GCC to emit some rather nasty abort()-like code (x86/x64 instruction "ud2a") when used as the type for va_arg().

This was the compiler message generated:
{{{
stack.c:339: warning: ‘INTERP_TYPE’ is promoted to ‘int’ when passed through ‘...’
stack.c:339: note: (so you should pass ‘int’ not ‘INTERP_TYPE’ to ‘va_arg’)
stack.c:339: note: if this code is reached, the program will abort
}}}

NOTE: Compiling as C++ now works (as does the produced code), using: {{{./configure CC=g++ CFLAGS=-fpermissive --enable-debug=relaxed}}}

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6957 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-06 13:09:10 +02:00
..
Makefile.am Fix missing files in makefiles so that 'make dist' can be run again. 2009-03-07 18:09:58 +00:00
chat_lexer.l Bump copyright 2009-02-10 18:01:48 +00:00
chat_parser.y Fix some spelling errors in debug messages and comments. Patch by Paul Wise <pabs3>. 2009-03-11 11:51:40 +00:00
chat_processing.h Bump copyright 2009-02-10 18:01:48 +00:00
codeprint.c Bump copyright 2009-02-10 18:01:48 +00:00
codeprint.h Bump copyright 2009-02-10 18:01:48 +00:00
event.c Bump copyright 2009-02-10 18:01:48 +00:00
event.h Bump copyright 2009-02-10 18:01:48 +00:00
eventsave.c Bump copyright 2009-02-10 18:01:48 +00:00
eventsave.h Bump copyright 2009-02-10 18:01:48 +00:00
interpreter.c Bump copyright 2009-02-10 18:01:48 +00:00
interpreter.h Bump copyright 2009-02-10 18:01:48 +00:00
makefile.win32 Updated MinGW32 makefiles; fix "multiple half-tracks" bug. 2009-02-15 05:49:09 +00:00
parse.h Bump copyright 2009-02-10 18:01:48 +00:00
script.c Fixes crash when certain scripts fail to compile, it don't allocate storage, so we shouldn't (try to) reference / free() it. 2009-02-28 02:17:20 +00:00
script.h Bump copyright 2009-02-10 18:01:48 +00:00
script.vcproj Updated MSVC project & solution file(s). 2009-02-15 05:42:09 +00:00
script_lexer.l Bump copyright 2009-02-10 18:01:48 +00:00
script_parser.y Bump copyright 2009-02-10 18:01:48 +00:00
stack.c Allow code passing and retrieving of enums as vararg parameters in C++ as well. 2009-04-06 13:09:10 +02:00
stack.h Bump copyright 2009-02-10 18:01:48 +00:00