Skip to content

Commit

Permalink
repair issue #461 (#487)
Browse files Browse the repository at this point in the history
* repair issue #461

except branch idl_is_type_spec(node)

* if we add an "idl_is_type_spec(node)" branch, it will cause an infinite recursion...

* delete parse by automatic parser
  • Loading branch information
ruoruoniao authored May 13, 2024
1 parent a5898db commit e4eb722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idlcxx/src/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ bool is_selfcontained(const void *node)
{
if (idl_is_sequence(node)
|| idl_is_string(node)
|| idl_is_optional(node)) {
|| is_optional(node)) {
return false;
} else if (idl_is_typedef(node)) {
return is_selfcontained(((const idl_typedef_t*)node)->type_spec);
Expand Down

0 comments on commit e4eb722

Please sign in to comment.