lua-users home
lua-l archive

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


So, call luaL_openlibs is enough, yes?


----- Original Message ----- 
From: "D Burgess" <dburgess@gmail.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Tuesday, August 22, 2006 10:33 AM
Subject: Re: luaopen_io() crash in Lua 5.1


> >From the manual -
> "The luaopen_* functions (to open libraries) cannot be called
> directly, like a regular C function. They must be called through Lua,
> like a Lua function"
> 
> i.e. try lua_call()
> 
> See linit.c for an example.
>