Fixed unsafe macro (#4486)
This commit is contained in:
parent
409cebc8e4
commit
7239a1aff3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user