lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Code to be test:
struct A
{
   int a,
   int b
};
 
int sum ( struct A * s)
{
   retunr s->a+s->b;
}
 
How could I construct a struct A object in lua scripts, and pass the pointer of this struct into sum() to test it?
 
Thanks,
 
Jim