Skip to content

Instantly share code, notes, and snippets.

@onionhammer
Created September 7, 2014 21:16
Show Gist options
  • Save onionhammer/4e370688218f8c3c996f to your computer and use it in GitHub Desktop.
Save onionhammer/4e370688218f8c3c996f to your computer and use it in GitHub Desktop.
clibpp
## Old
# Import "test" class from C++:
class(test, ns: pp, header: "../test.hpp"):
proc multiply[T](value, by: T): int
proc output: void {.isstatic.}
proc max[T](a, b: T): T
var fieldName, notherName: int
## New
# Import "test" class from C++:
namespace pp:
class(test, header: "../test.hpp"):
proc multiply[T](value, by: T): int
proc output: void {.isstatic.}
proc max[T](a, b: T): T
var fieldName, notherName: int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment