mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +00:00
12 lines
258 B
Nim
12 lines
258 B
Nim
discard """
|
|
cmd: "nim cpp --incremental:legacy $file"
|
|
"""
|
|
|
|
{.emit:"""/*TYPESECTION*/
|
|
#include <iostream>
|
|
struct Foo { };
|
|
""".}
|
|
|
|
type Foo {.importcpp.} = object
|
|
echo $Foo() #Notice the generic is instantiate in the this module if not, it wouldnt find Foo
|