URL:
<http://gna.org/bugs/?22969>
Summary: preprocessor #if, #elif
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Di 18 Nov 2014 23:12:06 UTC
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13
Operating System: all
_______________________________________________________
Details:
It would be cool if we'd have a more powerful preocoessor #if like in C, which
would allow expssions like:
#if defined(MULTIPLAYER) || defined(EDITOR)
...
#if defined(MULTIPLAYER) && WESNOTH_VERSION >= 1.13.2
...
#if have(~add-ons/My_Addon/_main.cfg) && (defined(EDITOR) ||
defined(MULTIPLAYER))
...
...
...
also #elif:
#if have(~add-ons/My_Addon/somecoolfile.cfg)
{~add-ons/My_Addon/somecoolfile.cfg}
#elif have(~add-ons/Your_Addon/somecoolfile.cfg)
{~add-ons/Your_Addon/somecoolfile.cfg}
#else
#error you dont have the file
#endif
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22969>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs