Skip to main content

generate_c_fix

Function generate_c_fix 

Source
pub fn generate_c_fix(layout: &StructLayout) -> String
Expand description

Render a reordered C/C++ struct definition as source text.

Uses the field names already present in the layout — type names come from the TypeInfo::Primitive/Opaque name stored during source parsing.