|
From: | Shmuel Zeigerman |
Subject: | Re: [cinvoke-dev] Question: cinv.string_to_chararray lua binding |
Date: | Thu, 03 Aug 2006 20:02:33 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060729 SeaMonkey/1.0.4 |
This patch should help: cinvoke_lua.c, line 1295. - lua_settable(l, 1); + lua_settable(l, -3); Arjen P. de Vries wrote:
I was trying to use cinvoke, and first experiment worked fine, but now I want to call a function with parameter char** and have not been successful so far. I ended up doing: require("cinvoke_lua") c = cinv.string_to_chararray("Test", true) print("c[1] = " .. c[1]) which gives the error message: lua: attempt to index a string value stack traceback: [C]: in function 'string_to_chararray' t.lua:2: in main chunk [C]: ? Am I doing something wrong?
[Prev in Thread] | Current Thread | [Next in Thread] |