Event dispatching: Improvement & bugfix
authorRui Guo <firemeteor.guo@gmail.com>
Sun, 7 Jun 2009 16:03:38 +0000 (00:03 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Sun, 7 Jun 2009 16:03:38 +0000 (00:03 +0800)
commit1f3ddb9f464c17eea57e9619301f540d68b43c68
treea10ac5d5d2c5ab4196e2d7a3d06c36c7456298ef
parent9dbd9d38f266bdf15ade6da71244e51d7407a538
Event dispatching: Improvement & bugfix

1. The reg/unreg interfaces are now called hook/unhook, the listen_to method
no longer exists.
2. Implement unregister logic, The privlege is unsigned now, and default to 31.
3. Check to prevent double reg/unreg the same handler.
4. Modify cmdcallback demo to enable toogle of logging.
src/lua.c
src/script.c
src/script.h
src/scripts/cmdcallback.lua