lua-users home
lua-l archive

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


--- In lua-l@yahoogroups.com, "Wim Couwenberg" <w.couwenberg@c...> 
wrote:

> What happens is that the luaL_loadbuffer call fails and leaves an 
error
> message on the stack.  Then lua_pcall tries to call a string 
value... There
> you go!  So you should check the result code of the 
luaL_loadbuffer call and
> report the error string if it failed.  See section 3.10 "Loading 
Lua chunks"
> of the manual.  (luaL_loadbuffer is a simple lua_load wrapper.)
 

  Duh... that was it!  Thanks.  Tom