reordered spaghetti.h, removed checktop debug struct
do not assume that the stack is empty in lua_cppcall
helper function to call lua hooks
use it for shuttingdown
hooks.tick
do not forward the hook table to hooks
hooks.tick example