I'm writing a c code by using WSTP library. In my c codes, I have a struct named Person, and I have a function named Foo, which returns an object of Person.
struct Person
{
int id;
char* name;
};
Person* Foo()
{
Person* person = new Perosn();
...
return person;
}
My problem is in the .tm file, I don't know how can I determine the return type. Please guide me.