[Commits] [wesnoth/wesnoth] df7189: add error reporting when [if] is evaluated with no...
GitHub
noreply at github.com
Thu Jun 5 23:55:34 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: df71897d2f1e42e9e244a4eab7abfbdded1150ef
https://github.com/wesnoth/wesnoth/commit/df71897d2f1e42e9e244a4eab7abfbdded1150ef
Author: Chris Beck <render787 at gmail.com>
Date: 2014-06-05 (Thu, 05 Jun 2014)
Changed paths:
M data/lua/wml-tags.lua
Log Message:
-----------
add error reporting when [if] is evaluated with no actions
I frequently make the mistake of using {IF_VAR} but forgetting to
use [then] with it. One solution is to use my own macro, but the
better solution is to add proper error reporting to if. If the
engine parses an [if] tag with no [then], [else], or [elseif], it
should flag an error... otherwise these mistakes are generally
silent and very difficult to find.
More information about the Commits
mailing list