you can use .codeGenDecl but iirc you need to double check the output i remember it being a tad buggy a year or so ago when i was using it.
- How to add something before a C declaration? xigoi
- How to add something before a C declaration? shirleyquirk
you can use .codeGenDecl but iirc you need to double check the output i remember it being a tad buggy a year or so ago when i was using it.