From e4eb7229e32d0838ce70694353bb2e68b0ccba0b Mon Sep 17 00:00:00 2001 From: MikuSoft <37649564+ruoruoniao@users.noreply.github.com> Date: Mon, 13 May 2024 16:25:03 +0800 Subject: [PATCH] repair issue #461 (#487) * 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 --- src/idlcxx/src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idlcxx/src/generator.c b/src/idlcxx/src/generator.c index b0d2bfc1..1a7692b8 100644 --- a/src/idlcxx/src/generator.c +++ b/src/idlcxx/src/generator.c @@ -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);