diff options
author | moteus <mimir@newmail.ru> | 2012-09-05 16:09:46 +0400 |
---|---|---|
committer | moteus <mimir@newmail.ru> | 2012-09-05 16:09:46 +0400 |
commit | 46a94cbb43975e06bdb66f47974d09d7b3b36a22 (patch) | |
tree | ee7e36b7ec56d3f7de6367122d7b7f6ec72eb13f /src/luawin_dllerror.c | |
parent | e52ac7f6beaf32bdebb7e3af33448e79df5cc6b6 (diff) |
Support Lua 5.2
Add tests from http://scite-ru.googlecode.com/
Add lakefile
Diffstat (limited to 'src/luawin_dllerror.c')
-rw-r--r-- | src/luawin_dllerror.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luawin_dllerror.c b/src/luawin_dllerror.c index 68f0db0..d661083 100644 --- a/src/luawin_dllerror.c +++ b/src/luawin_dllerror.c @@ -12,8 +12,7 @@ void lua_dllerror(lua_State *L, DWORD dwErr){ /*
if lgk_dllerror is present in global env and equal to false dont raise error!
*/
- lua_pushliteral(L, lgk_dllerror);
- lua_rawget(L, LUA_GLOBALSINDEX);
+ lua_getglobal(L, lgk_dllerror);
if(lua_isrealfalse(L, -1)){
WIN_TRACEA("lua_dllerror:false");
|