clibpp

Easy way to 'Mock' C++ interface

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Installation

nimble install clibpp
choosenim install clibpp
git clone https://github.com/onionhammer/clibpp.git

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
clibpp - - - - - - -

Source

Repository https://github.com/onionhammer/clibpp.git
Homepage https://github.com/onionhammer/clibpp
Registry Source nimble_official

README

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