Fixed unsafe macro (#4486)
This commit is contained in:
parent
409cebc8e4
commit
7239a1aff3
@ -215,8 +215,8 @@ bool match(char const *region, Ctx && ctx, T && val, Case && cs, Cases&&... case
|
|||||||
// Return second argument from possible sequences {1, 0}, {0, 1, 0}
|
// Return second argument from possible sequences {1, 0}, {0, 1, 0}
|
||||||
#define OV_CC_SCOPE_IS_ENABLED2(arg1_or_junk) OV_CC_SCOPE_SECOND_ARG(arg1_or_junk 1, 0)
|
#define OV_CC_SCOPE_IS_ENABLED2(arg1_or_junk) OV_CC_SCOPE_SECOND_ARG(arg1_or_junk 1, 0)
|
||||||
|
|
||||||
#define OV_SCOPE(Module, region) \
|
#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
|
// Switch is disabled
|
||||||
#define OV_CC_SWITCH_0(Module, fn, ctx, val)
|
#define OV_CC_SWITCH_0(Module, fn, ctx, val)
|
||||||
|
Loading…
Reference in New Issue
Block a user