lua-users home
lua-l archive

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


Hi,
I want to get a list of attributes of a C struct added to Lua with tolua++.
For example:
struct testC
{
  int number;
  char* name;
}


In lua:
  my_s = function_returning_testC()
  print_fields(my_s)

On output:
my_s: testC
"int" "number"
"char*" "name"

Best regards
Nick