Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Easy way to 'Mock' C++ interface

Topics

Resources

License

Releases

No releases published

Packages

No packages published