Fixed unsafe macro (#4486)

This commit is contained in:
Anton Pankratv 2021-03-03 21:38:39 +03:00 committed by GitHub
parent 409cebc8e4
commit 7239a1aff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,7 @@ bool match(char const *region, Ctx && ctx, T && val, Case && cs, Cases&&... case
#define OV_CC_SCOPE_IS_ENABLED2(arg1_or_junk) OV_CC_SCOPE_SECOND_ARG(arg1_or_junk 1, 0)
#define OV_SCOPE(Module, region) \
if (OV_CC_SCOPE_IS_ENABLED(OV_PP_CAT3(Module, _, region)))
for (bool ovCCScopeIsEnabled = OV_CC_SCOPE_IS_ENABLED(OV_PP_CAT3(Module, _, region)); ovCCScopeIsEnabled; ovCCScopeIsEnabled = false)
// Switch is disabled
#define OV_CC_SWITCH_0(Module, fn, ctx, val)