We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9b34b commit ea3e47aCopy full SHA for ea3e47a
make/tools/make-reb-lib.reb
@@ -132,8 +132,12 @@ func-header: [
132
demit [tab p2 ","]
133
remit [tab p1 "(*" p2l ")" p3 ";"]
134
args: count p3 #","
135
+ argsd: either find args "__VA_ARGS__" [
136
+ ;warning: __VA_ARGS__ can only appear in the expansion of a C99 variadic macro
137
+ replace copy args "__VA_ARGS__" "..."
138
+ ][ args ]
139
m: tail mlib
- memit/nol ["#define " p2u args]
140
+ memit/nol ["#define " p2u argsd]
141
memit [pads m 35 " RL->" p2l args]
142
if w: find cmt "****" [append clear w "*/"]
143
memit ["/*^/**^-" spec "^/**" cmt newline]
0 commit comments