diff --git a/classes.c b/classes.c index eb71d09..9ee184b 100644 --- a/classes.c +++ b/classes.c @@ -444,6 +444,8 @@ static void class__print_function(struct class *self, const struct cu *cu) if (first_parameter) fputs("void", stdout); fputs(");\n", stdout); + if (self->size == 0) + return; printf("/* size: %llu", self->high_pc - self->low_pc); if (self->nr_variables > 0) printf(", variables: %u", self->nr_variables);