Setting a counter

So far, the syntax of debug.sethook has been the following:

debug.sethook(<handler function>, <"l" | "c" | "r">

No matter the event, the function always took two arguments. The debug.sethook function has an optional, third argument: count. Providing a count will fire a "count" event on every time the specified number of instructions have happened.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.62.168