Restructure the func register code.
commit83ecdcf791cb24410751cf9760b58df8d8d8a290
authorRui Guo <firemeteor.guo@gmail.com>
Wed, 10 Jun 2009 14:02:18 +0000 (10 22:02 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Wed, 10 Jun 2009 14:02:18 +0000 (10 22:02 +0800)
treeb9847c2bf0702050576001b8322ef94a60fc79c9
parent5d6d1271e6dbdfa5e23d019774150822a865d251
Restructure the func register code.

Now we have a unified Lua function registration mechanism. User can register
with the function name, but the name is always resolved to the Lua function
itself. Typo is detected at this stage. The Lua function is then mapped to a
unique key, managed with reference counting.
src/lua.c