Author: esr
Date: Sat Apr 5 09:16:01 2008
New Revision: 25555
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25555&view=rev
Log:
Quiet down wmlunits.
Modified:
trunk/data/tools/wmlunits
Modified: trunk/data/tools/wmlunits
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=25555&r1=25554&r2=25555&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Sat Apr 5 09:16:01 2008
@@ -23,6 +23,9 @@
parser = wmlparser.Parser(datadir)
parser.do_preprocessor_logic = True
#parser.verbose = True
+
+ # Suppress complaints about undefined terrain macros
+ parser.set_macro_not_found_callback(lambda wmlparser, name, params:
name.startswith("TERRAIN") or name == "DISABLE_TRANSITIONS")
# Create a new WML object.
WML = wmldata.DataSub("WML")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits