[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: creating and evaluating functions -- Lua 4.0 vs Lua 5.0
- From: Jilani Khaldi <jilani.khaldi@...>
- Date: Wed, 18 Jun 2003 19:18:59 +0200
Hi All,
as a matter of fact, I am using Lua 4.0 code with Delphi where this code
runs fine with Lua4:
k := lua_dostring(L,LuaCode);
where k is an integer and LuaCode is PChar (char *LuaCode)
L = PLua_State (Lua_State *L);
With Lua5 this code doesn't run anymore. I have tried the function lua_load
lua_load: function(L: Plua_State; reader: lua_Chunkreader; data: Pointer;
const chunkname: PChar): Integer; cdecl;
I have tried many parameters but I can't find the right ones to put in it.
k := lua_load(L, ...);
In this case what are "reader", "lua_Chunkreader", "data", "chunkname"
parameters?
Thanks!
jilani