[*] Add default returns should the functional interface be unimplemented

This commit is contained in:
Reece Wilson 2022-01-19 02:28:18 +00:00
parent e2c742082c
commit f6025d08cd

View File

@ -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); \
} }