Has details about a local variable of confirmed activation record

Has details about a local variable of confirmed activation record

lua_getinfo

To obtain information regarding a work invocation, the parameter ar needs to be a valid activation record that has been filled by a previous call to lua_getstack or provided as argument to a hook (discover lua_Hook ).

Receive information on a purpose you drive it onto the stack and start the exactly what sequence together with the personality ‘ > ‘. (Therefore, lua_getinfo pops the event inside the top of pile.) For-instance, to understand by which line a function f was defined, you’ll be able to compose listed here laws:

  • ‘ letter ‘: fills in the field identity and namewhat ;
  • ‘ S ‘: fills inside areas resource , short_src , linedefined , lastlinedefined , and just what ;
  • ‘ l ‘: fills on the go currentline ;
  • ‘ u ‘: fills in that particular niche nups ;
  • ‘ f ‘: pushes on the bunch the big event which working at the offered degree;
  • ‘ L ‘: forces onto the bunch a dining table whose indicator would be the quantities of the lines which happen to be good from the function. (A valid range is actually a line with a few associated laws, that will be, a line where you can place some slack point. Non-valid traces feature unused lines and remarks.)

lua_getlocal

The factor ar need to be a legitimate activation record that has been filled by a past phone call to lua_getstack or given as argument to a hook (read lua_Hook ). …