Hi!
Is it possible to get pointer by @function
if this function argument is CxxWrap binded struct?
Class binding
types.add_type<DataBase>("Database")
.method("GetProperty", &DataBase::getProperty);
and julia function with binded class argument:
function Eg(db::CppTypes.Database, mat::Cint)
return GetProperty(db, mat)
end
which will be getted on c++ side with:
auto *eg = (double (*)(DataBase *, int)) jl_unbox_voidpointer(jl_eval_string("@cfunction(Eg, Cdouble, (Ptr{Cvoid}, Cint))"));
Seems like i dont understand julia interface enugh.
Should julia
function get Ptr{Cvoid}
as argument and convert it to desired structure via static_cast
?
Thanks!