[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: newbie question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 29 Oct 2002 17:49:01 -0300
>Now when I run the C program, it looks like the lua_call() function
>doesn't do anything since the previous lua_getglobal() doesn't
>actually find the "main" function. Am I doing something wrong here?
luaL_loadfile does not run the code only loads it. So, main never gets defined.
Try lua_dofile instead or lua_call after luaL_loadfile.