> I have considered wrapping them in a macro which takes varargs of untyped and 
> then just creating an emit statement out of it, but the return value would 
> still be impossible to get the type of.

Yah there's really no good way to do them as they're technically not part of C 
itself.

You can import C macros as Nim functions, but you need to figure out the types 
yourself. Even then for some C macros it'll break since Nim C code doesn't 
always call it the way macros need to be called. 

Reply via email to