static void write_function(const entity_t *entity)
{
- if (entity->function.statement != NULL) {
+ if (entity->function.body != NULL) {
fprintf(stderr, "Warning: can't convert function bodies (at %s)\n",
entity->base.symbol->string);
}
if(function_type->variadic) {
if(!first) {
fprintf(out, ", ");
- } else {
- first = 0;
}
fputs("...", out);
}