mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Undo fix and actually use a macro in the accumulation test .. just incase.
This commit is contained in:
parent
c675ba8086
commit
c210340081
2 changed files with 8 additions and 5 deletions
2
ftepp.c
2
ftepp.c
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue