cppNonPod pragma

The cppNonPod pragma should be used for non-POD importcpp types so that they work properly (in particular regarding constructor and destructor) for threadvar variables. This requires --tlsEmulation:off.

  1. type Foo {.cppNonPod, importcpp, header: "funs.h".} = object
  2. x: cint
  3. proc main()=
  4. var a {.threadvar.}: Foo