lua-users home
lua-l archive

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


> Is there an easier more general way of getting any lua value. [...]

lua_Object general_get (char *s)
{
  char buff[MAX];
  sprintf(buff, "return %s", s);
  lua_dostring(buff);
  return lua_getresult(1);
}

-- Roberto