Skip to content

onionhammer/clibpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published