Commit cff3bab1 authored by twanvl's avatar twanvl

fixed WITH_DYNAMIC_ARG: scoping of RIIA object

parent 4eb618cb
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
* @endcode * @endcode
*/ */
#define WITH_DYNAMIC_ARG(name, value) \ #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 // ----------------------------------------------------------------------------- : EOF
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment