Undo fix and actually use a macro in the accumulation test .. just incase.

This commit is contained in:
Dale Weiler 2013-10-17 20:34:16 -04:00
parent c675ba8086
commit c210340081
2 changed files with 8 additions and 5 deletions

View file

@ -1513,8 +1513,6 @@ static bool ftepp_hash(ftepp_t *ftepp)
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);

View file

@ -1,10 +1,15 @@
[[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");
}