summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cpp/32007-Issue_3052.cpp
blob: cb468be3242ede9af64967aa86291c51e04f0d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
#define VTABLE_DECLARE                                            \
	extern struct vtable_struct_name_macro vtable_base_macro; \
	struct vtable_struct_name_macro

#define VTABLE_METHOD(retvalue, method, args ...) \
	retvalue(*method)(args)

VTABLE_DECLARE {
	VTABLE_METHOD(int, get, const char *name);
	VTABLE_METHOD(int, set, const char *name, int value);
};