Open vspinu opened 3 years ago
Put the declarations in mypkgname_types.h
and it will be included in the generated header.
Great, thanks! Would be great if you could add a sentence to the docs of cpp_register
about this. This is where people would search first for such info.
Put the declarations in mypkgname_types.h
This doesn't seem to work for cpp11::cpp_source
. I have tried all possible combinations <filename>_types.h
, types.h
, <filename>_types.hpp
, and types.hpp
.
My function returns
external_pointer<MyClass>
. How can I get a definition ofMyClass
into cpp11.cpp?I was hoping for a declaration like
[cpp11:include]
which I can put in front of some statement and it will be automatically included incpp11.cpp
. Is there such a thing?