You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the example provided, I know that you can include other libraries in the C++ blocks:
cpp!{{
#include <iostream>
}}
I'm wondering if it is possible to use things defined in cpp! macros in other C++ files. For example, one can define a function in the block like this:
cpp!{{
#include <iostream>
int cpp_func(){return42;}}}
Are there any ways for other cpp files to use the function cpp_func?
If this is possible, then I believe this project can also be used to embed Rust code in C++, as one can wrap all the C++ code by cpp! and insert Rust by rust!.
Also, is it possible to open a discussion page for this project? I believe it is more suitable to place questions like this on the discussion page.
The text was updated successfully, but these errors were encountered:
From the example provided, I know that you can include other libraries in the C++ blocks:
I'm wondering if it is possible to use things defined in
cpp!
macros in other C++ files. For example, one can define a function in the block like this:Are there any ways for other cpp files to use the function
cpp_func
?If this is possible, then I believe this project can also be used to embed Rust code in C++, as one can wrap all the C++ code by
cpp!
and insert Rust byrust!
.Also, is it possible to open a discussion page for this project? I believe it is more suitable to place questions like this on the discussion page.
The text was updated successfully, but these errors were encountered: