Created
September 7, 2014 21:16
-
-
Save onionhammer/4e370688218f8c3c996f to your computer and use it in GitHub Desktop.
clibpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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