hack lua to support signal

This commit is contained in:
Cloud Wu
2015-06-17 22:12:48 +08:00
parent f36b173155
commit 2086e13a46
2 changed files with 19 additions and 0 deletions

View File

@@ -458,6 +458,11 @@ struct lua_Debug {
/* }====================================================================== */
/* Add by skynet */
LUA_API lua_State * skynet_sig_L;
LUA_API void (lua_checksig_)(lua_State *L);
#define lua_checksig(L) if (skynet_sig_L) { lua_checksig_(L); }
/******************************************************************************
* Copyright (C) 1994-2015 Lua.org, PUC-Rio.