lua-users home
lua-l archive

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


Yes, indeed!

Thanks for the tip!

The function became this:

int thefunc(lua_State *L)
{
    lua_newtable(L);

     // check parameters ...

     for(int i = 1; i <= someValue; i++){

       ...
       lua_pushstring(L, someString);
       lua_rawseti(L, i, -1);
     }
     return 1;
}
 
Much better!



	
	
		
_______________________________________________________ 
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis