C++: Fix use of @c_type tag in struct definition

Summary: Depends on D11090

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11099
This commit is contained in:
Felipe Magno de Almeida 2020-01-17 09:51:24 -05:00 committed by Mike Blumenkrantz
parent 4250494f11
commit 25e52f8106
1 changed files with 8 additions and 1 deletions

View File

@ -283,7 +283,14 @@ struct visitor_generate
}
else
{
if(as_generator
if(regular.type_type == attributes::typedecl_type::struct_
|| regular.type_type == attributes::typedecl_type::struct_opaque)
{
std::copy (c_type.begin(), c_type.end(), sink);
return true;
}
else
if(as_generator
(
*(string << "_")
<< string