[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaopen_io() crash in Lua 5.1
- From: "jason zhang" <jzhang@...>
- Date: Tue, 22 Aug 2006 10:39:21 +0800
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.
>