[*] Add default returns should the functional interface be unimplemented
This commit is contained in:
parent
e2c742082c
commit
f6025d08cd
@ -43,6 +43,10 @@
|
|||||||
name ## _t name ## Functional; \
|
name ## _t name ## Functional; \
|
||||||
virtual ret name (AUI_EXPAND_PARAMS params) override \
|
virtual ret name (AUI_EXPAND_PARAMS params) override \
|
||||||
{ \
|
{ \
|
||||||
|
if (!name ## Functional) \
|
||||||
|
{ \
|
||||||
|
return ret(); \
|
||||||
|
} \
|
||||||
return name ## Functional(AUI_EXPAND_PARAMS_PARAMS params); \
|
return name ## Functional(AUI_EXPAND_PARAMS_PARAMS params); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user