mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed WITH_DYNAMIC_ARG: scoping of RIIA object
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@39 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
* @endcode
|
||||
*/
|
||||
#define WITH_DYNAMIC_ARG(name, value) \
|
||||
if (name##_changer(value))
|
||||
if (name##_changer name##_dummmy = value) // hack: variable in if guard scopes over the following block
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user