[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-wiki-changes] PreprocessorRef
From: |
wiki |
Subject: |
[Wesnoth-wiki-changes] PreprocessorRef |
Date: |
Mon, 8 Nov 2004 22:40 +0100 |
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; sv-se) AppleWebKit/125.5.5
(KHTML, like Gecko) Safari/125.11
IP: 213.64.183.37
URI: http://wesnoth.slack.it/?PreprocessorRef
- - - - -
Index: PreprocessorRef
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/PreprocessorRef,v
retrieving revision 1.15
diff -u -r1.15 PreprocessorRef
--- PreprocessorRef 8 Nov 2004 21:17:23 -0000 1.15
+++ PreprocessorRef 8 Nov 2004 21:40:51 -0000
@@ -16,13 +16,14 @@
See the //#define// preprocessor instruction for defining symbols, including
symbols with arguments.
Several symbols are defined in the normal game code; these are known as
//ids//.
* ||{//filename//}|| if the content of the bracket isn't a known symbol,
-Wesnoth will assume it's a file in the data/
-subdirectory of the wesnoth game data and include it here "as is", unless it
starts with //./ //, in which case it is
+Wesnoth will assume it's a file in the main data/
+subdirectory of Wesnoth and include it here "as is", unless it starts with
//./ //, in which case it is
assumed to be a relative path.
-if //filename// is a directory,
+If //filename// is a directory,
then all config (//.cfg//) files in the directory (non-recursively), in
alphabetical order, will be included.
-* ||{~//filename//}|| similar to above, but Wesnoth assumes the filename is
relative to ||~/.wesnoth/data/||
+* ||{~//filename//}|| similar to above, but Wesnoth assumes the filename is
relative to the user data directory ||~/.wesnoth/data/||
(||userdata/|| on Windows).
+* ||{@//filename//}|| is a convenient way to make Wesnoth look for a file by
that name in both the main and the user data directory.
* ||#define //symbol// [//parameters//] //newline// //substitution//
#enddef|| all occurences of
{//symbol// [//arguments//]}
will be replaced by //substitution// with all occurences of any parameter
@@ -71,10 +72,6 @@
* SyntaxWML
* UtilWML
* ReferenceWML
-
-
-
-