diff --git a/doc/manual.md b/doc/manual.md index 8d1440f4d0..1455334cad 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -7893,9 +7893,9 @@ will generate this code: `cppNonPod` pragma ------------------ -The `.cppNonPod` pragma should be used for non-POD `importcpp` types so that they +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`:option:. +`threadvar` variables. This requires `--tlsEmulation:off`:option:. ```nim type Foo {.cppNonPod, importcpp, header: "funs.h".} = object @@ -8127,6 +8127,8 @@ is not set to C, other pragmas are available: * `importobjc `_ * `importjs `_ +The string literal passed to `importc` can be a format string: + ```Nim proc p(s: cstring) {.importc: "prefix$1".} ```