lua-users home
lua-l archive

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


In a program I have :

 

 

function x()

 print(“global x”)

end

 

 

function y()

                local function x()

                      print(“local x”)

             end

           call_to_c_function()

end

 

y()

 

from the c function I would like to call

1/ the local x function in y (if available)

2/ the global x func if available.

 

I have no problem to call the global x function

But no idea on how I could call the localone

 

Any idea ?

 

 

Thanks