Hi everyone,
Looking through the forums I’m not quite sure if this has been answered or not. I’m looking to call a .ts function from Cpp. I see mention of using shim:: when going the opposite way, but not sure about going from ts to Cpp. Simple example:
foo.ts has function
namespace tsFunction
{
export fooBar(something:number)
{
…
…
}
}
fib.cpp has function
namespace cppFunction {
void fib()
{
fooBar(11);
}
}
How can I make this possible? I’ve tried doing something like:
//% shim=tsFunction::fooBar
Any help appreciated.
Thanks,
Josh