Try this:
{.emit: """/*TYPESECTION*/
class Foo{};
""".}
type Foo {.importcpp: "Foo", nodecl.} = object
proc hello(_: Foo) = echo "Hello"
proc foo (call: proc(_: Foo)) =
call Foo()
foo hello
- A question about importcpp and closure LinGo
- Re: A question about importcpp and closure mashingan
