c2z icon indicating copy to clipboard operation
c2z copied to clipboard

C++ to Zig bindings and transpiler

Results 9 c2z issues
Sort by recently updated
recently updated
newest added

We're integrating im3d into Tides of Revival: https://github.com/john-chapman/im3d/ It's Color struct has a constructor like this: ```C++ Color(float _r, float _g, float _b, float _a = 1.0f); ``` https://github.com/john-chapman/im3d/blob/master/im3d.h#L373C11-L373C65 The...

It is common practice in C and C++ to add function prefixes like: `glBindProgram` or `b2World` or `rcIgnoreUnused` we should have a option to remove these. the expected outputs shuold...

good first issue

After each transpile we should do run an Ast check with [`std.zig.Ast.parse`](https://ziglang.org/documentation/master/std/#A;std:zig.Ast.parse) and fix small error like unused variables and immutable var declarations. The main goal is check if the...

Previously I've been working with cbindgen which transpiles rust code into other languages, commonly used for C. However I've added zig support. During this experiment I realized that zig can...

By building with LTO enabled is possible to export c++ functions like so: ``` extern "C" { const void *simple_getGreetings = (void *)&simple::getGreetings; } ``` and interfacing them using: ```...

Some lambda test - C++20: https://godbolt.org/z/Gq1h7Ezn9 #### Lambda 1 **input** ```c++ #include template int print_hello = (std::cout

**zig version:** `0.11.0-dev.3905+309aacfc8` ### `std::string` **Test** Update: Wrong!! No C++ receiver in `DoSomething()`. ```bash $> zig build test run test: error: SampleObject is doing something ``` ```zig // in tests.zig...

Library: https://github.com/filcuc/dotherside **Input** ```bash $> c2z -I test/dotherside/lib/include/DOtherSide/ test/dotherside/lib/include/DOtherSide/DOtherSide.h ``` Transpiling errors - Linux target ```bash info: using host `x86_64-linux-gnu` as target info: zig cc -x c++ -lc++ -Xclang -ast-dump=json...

Upon binding The-Forge, we found a case where it has a function with a parameter called `align`. This causes a compile error because align is also a Zig keyword. c2z...