[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loadlib support for OSX
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Jan 2004 08:24:53 -0200
It seems we're converging, specially with Edgar Toernig's mods...
Just another detail:
symname = lua_pushfstring(L, "_%s", init);
instead of
lua_pushfstring(L, "_%s", init);
symname = lua_tostring(L, -1);
Actually, with ET's mods, we don't need symname at all:
sym = NSLookupSymbolInModule(module, lua_pushfstring(L, "_%s", init));
But this may not be clear code...
--lhf