Added standalone AUI_BRACKET_SCOPE in the standalone library

This commit is contained in:
Reece Wilson 2021-10-07 22:56:33 +01:00
parent 078d3d77e7
commit 363b41325f

View File

@ -10,6 +10,8 @@
***/
#pragma once
#define AUI_BRACKET_SCOPE(...) __VA_ARGS__
#define AUI_EXPAND_PARAMS_JOINER_A(a, b) a b
#define AUI_EXPAND_PARAMS_JOINER_B(a, b) , a b
#define AUI_EXPAND_PARAMS(...) AU_FOR_EACH_FIRST_2(AUI_EXPAND_PARAMS_JOINER_A, AUI_EXPAND_PARAMS_JOINER_B, __VA_ARGS__)
@ -63,8 +65,8 @@
#define AUI_DEFINE_INTERFACE_START_CPP_WRAPPER_FWD(name, ...) AUI_DEFINE_INTERFACE_START_FUNCTIONAL_BASE(AUI_METHOD_FUNCTIONAL_FWD, name, __VA_ARGS__)
#define AUI_DEFINE_INTERFACE_START_CPP_WRAPPER_IMPL(name, ...) AUI_DEFINE_INTERFACE_START_FUNCTIONAL_BASE(AUI_METHOD_FUNCTIONAL_IMPL, name, __VA_ARGS__)
#define AUI_PARAMS(...) AU_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_METHODS(...) AU_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_METHOD(...) AU_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_PARAMS(...) AUI_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_METHODS(...) AUI_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_METHOD(...) AUI_BRACKET_SCOPE(__VA_ARGS__)
#define AUI_INTERFACE_FWD(name, ...) AUI_DEFINE_INTERFACE_START_STRUCT(name, __VA_ARGS__) AUI_DEFINE_INTERFACE_START_CPP_WRAPPER_FWD(name, __VA_ARGS__)
#define AUI_INTERFACE_IMPL(name, ...) AUI_DEFINE_INTERFACE_START_STRUCT(name, __VA_ARGS__) AUI_DEFINE_INTERFACE_START_CPP_WRAPPER_IMPL(name, __VA_ARGS__)