Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onionhammer/clibpp
Easy way to 'Mock' C++ interface
https://github.com/onionhammer/clibpp
cplusplus cpp nim
Last synced: about 2 months ago
JSON representation
Easy way to 'Mock' C++ interface
- Host: GitHub
- URL: https://github.com/onionhammer/clibpp
- Owner: onionhammer
- License: mit
- Created: 2014-05-30T01:34:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-27T00:22:36.000Z (almost 10 years ago)
- Last Synced: 2023-08-05T16:02:14.500Z (over 1 year ago)
- Topics: cplusplus, cpp, nim
- Language: Nimrod
- Size: 233 KB
- Stars: 11
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
clibpp
======Easy way to 'Mock' C++ interface
Outline the C++ class
---------------------
```nimrod
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
-----------------
```nimrod
# Test interface
test.output()var item: test
echo item.multiply(5, 9)
echo item.fieldName
echo item.max(2, 10)
echo item.notherName
```