[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Adding new paths for the access of embedded programs
- From: Graham Wakefield <wakefield@...>
- Date: Fri, 1 Jan 2010 10:32:09 -0800
On Dec 31, 2009, at 12:15 PM, Luciano de Souza wrote:
lua_pcall(l, 0, 0, 0);
Change this to (the equivalent in Pascal):
if (lua_pcall(l, 0, 0, 0)) {
printf("error: %s\n", lua_tostring(L, -1));
}
(if lua_pcall triggers an error, it returns non-zero and leaves the
error message at stack index -1)
lua_close(l);
end.
----- Original Message ----- From: "Wesley Smith" <wesley.hoke@gmail.com
>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Thursday, December 31, 2009 5:47 PM
Subject: Re: Adding new paths for the access of embedded programs
if you require a module and Lua can't find it then you definitely
have
errors. You just need to read up on the Lua documentation to figure
out how to get them. How are you loading your Lua code?
wes