I could find how to do something with a fixed size, but how could I do something like this in Lua script
obj = Array(size)
then get the size into my C++ function to create the table. Then figure how to iterate through the contents in my methods. I also want to make my own custom methods.
I would like this function to be available to Lua scripts. I am assuming that it would be more efficient to code this in C++.
This is my header:
void exch_con(int* ref, int siz, int* oref, int osiz);
So what I want to do is to have these two methods where some setup can be done with the startup method, but I want the method to be able to finish and have Lua still hold on to some of the stuff that was created within it and to be able to have a runloop method to be able to do the same. I also...