[Commits] [wesnoth/wesnoth] 987bb7: preproc: Add warning on macro redefinitions withou...
GitHub
noreply at github.com
Tue Aug 18 06:26:23 UTC 2015
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 987bb787ce85be179167040188e3f7b5b71b1804
https://github.com/wesnoth/wesnoth/commit/987bb787ce85be179167040188e3f7b5b71b1804
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2015-08-18 (Tue, 18 Aug 2015)
Changed paths:
M changelog
M src/serialization/preprocessor.cpp
Log Message:
-----------
preproc: Add warning on macro redefinitions without #undef
This is intended to help guard authors against unintentional name
clashes.
Commit: c36bb4c5d0fb9dc04a0187be6f16e4f901bc269a
https://github.com/wesnoth/wesnoth/commit/c36bb4c5d0fb9dc04a0187be6f16e4f901bc269a
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2015-08-18 (Tue, 18 Aug 2015)
Changed paths:
M changelog
M src/serialization/preprocessor.cpp
Log Message:
-----------
preproc: Fix macro definition lines being offset by 1
This is most noticeable in preprocessor messages involving the
definition location of a macro (redefine warning, argument mismatch
errors). The preprocessor_data linenum_ variable never starts at zero as
far as I can tell.
Compare: https://github.com/wesnoth/wesnoth/compare/5fd31c88a533...c36bb4c5d0fb
More information about the Commits
mailing list