case TOKEN_KEYWORD:
case TOKEN_IDENT:
case TOKEN_TYPENAME:
- case TOKEN_ATTRIBUTE_CLOSE:
- case TOKEN_ATTRIBUTE_OPEN:
if (!strcmp(ftepp_tokval(ftepp), "define")) {
ftepp_inmacro(ftepp, "define");
return ftepp_define(ftepp);
-[[accumulate]] void foo() {
+#define ACCUMULATE_FUNCTION(FUNC) \
+ [[accumulate]] void FUNC ()
+
+ACCUMULATE_FUNCTION(foo) {
print("hello ");
}
-[[accumulate]] void foo() {
+
+ACCUMULATE_FUNCTION(foo) {
print("accumulation ");
}
-[[accumulate]] void foo() {
+
+ACCUMULATE_FUNCTION(foo) {
print("world\n");
}