error messages for callback.register
Hello, Here a patch for luat-cbk.lua: function callbacks.register(name,func,freeze) if frozen[name] then if trace_callbacks then frozenmessage("registering",name) end return nil, name .. " is frozen" elseif freeze then frozen[name] = (type(freeze) == "string" and freeze) or "registered" return register_callback(name,func) else return register_callback(name,func) end end function callback.register(name,func) -- original if frozen[name] then if trace_callbacks then frozenmessage("registering",name) end return nil, name .. " is frozen" else return register_callback(name,func) end end (Untested...) Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
participants (1)
-
Peter Münster