From 895a5a288f5eae2f5a9133e95195f7fc126e0673 Mon Sep 17 00:00:00 2001 From: Mingbo <1418561105@qq.com> Date: Tue, 30 Apr 2024 10:20:57 +0800 Subject: [PATCH] repair issue #461 --- src/idlcxx/src/generator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/idlcxx/src/generator.c b/src/idlcxx/src/generator.c index b0d2bfc1..34bed006 100644 --- a/src/idlcxx/src/generator.c +++ b/src/idlcxx/src/generator.c @@ -575,6 +575,9 @@ bool is_selfcontained(const void *node) const idl_node_t *parent = ((const idl_node_t*)node)->parent; assert (idl_is_typedef(parent)); return is_selfcontained(parent); + } else if (idl_is_type_spec(node)) { + const idl_node_t *parent = ((const idl_node_t*)node)->parent; + return is_selfcontained(parent); } else { return !is_external(node); }