eudoxia0 / cmacro

Lisp macros for C
881 stars 29 forks source link

Is there a way to define a toplevel point in the source file? #17

Open tentaclius opened 1 year ago

tentaclius commented 1 year ago

My problem is if I define lambda as shown in the example, the function definition goes to the top of the file and so it doesn't pick up types from included headers. So I was wondering if there a template to define this position in the file? Thanks!

caffe3 commented 5 months ago

There isn't a way currently but it can be worked around by including the generated file inside another source file.