|
When you compile a Lua chunk using "load" the entire chunk is treated as an anonymous function. So the output from "load(str)" is a function that, *when executed*, will define the call_me function and store it in the global named "call_me". So, after you call the "test()" function in test.lua (from your C code), call_me has NOT been created because you have not executed the anonymous function stored in bytecode. What you really need to do is execute bytecode. --Tim On Apr 18, 2013, at 2:36 PM, Ashish Mahamuni <mahamuni.ashish@gmail.com> wrote:
|