Use separate lua_State for different script files.
authorRui Guo <firemeteor.guo@gmail.com>
Tue, 18 Aug 2009 17:10:51 +0000 (01:10 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Tue, 18 Aug 2009 17:10:51 +0000 (01:10 +0800)
commitf86d76f62c2577fc4e7d061a6a6bee8fecaf131f
treee63e763690eaccb482896c7e45bf46674daecf68
parentba447189a095824b79bf8442308e6beb97a5401d
Use separate lua_State for different script files.

This totally solves issues with sourcing a script multiple times and make
anonymous hook functions work again.
src/lua.c
src/scripts/cmdcallback.lua