No description
Find a file
2015-03-26 19:22:01 -05:00
.gitignore Initial commit 2014-05-29 20:39:32 -05:00
clibpp.babel Initial commit 2014-05-29 20:39:32 -05:00
clibpp.nim implements fake-namespaced static variables 2015-03-25 22:07:40 -05:00
LICENSE Initial commit 2014-05-29 20:34:28 -05:00
makefile Initial commit 2014-05-29 20:39:32 -05:00
README.md Fixed readme 2014-09-07 17:37:02 -05:00
test.cpp added testing coverage of inheritance 2015-03-12 11:56:53 -05:00
test.hpp added testing coverage of inheritance 2015-03-12 11:56:53 -05:00

clibpp

Easy way to 'Mock' C++ interface

Outline the C++ class

namespace somelibrary:
	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

Use the C++ class

# Test interface
test.output()

var item: test
echo item.multiply(5, 9)
echo item.fieldName
echo item.max(2, 10)
echo item.notherName