Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myNs.MyClass, header: "my_macro.h":
- proc myMethod: void
- ## Generates
- type MyClass {.header: "my_macro.h", importc: "myNs::MyClass".} = object
- ## Or
- using myNs
- class MyClass, header: "my_macro.h":
- proc myMethod: void
- ## Generates
- {.emit: "using namespace myNs;".}
- type MyClass {.header: "my_macro.h", importc: "MyClass".} = object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement