Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maxymania committed Mar 17, 2017
1 parent a44f583 commit 0540f4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions luab.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ int luab_getmacro(lua_State* L, sds macro){
if(LUA_TFUNCTION!=lua_getfield(L,1,macro))
return -1;
lua_remove(L,1);
return i;
}
void luab_setmacro(lua_State* L, const char* macro, const char* code,int type){
int rc;
Expand All @@ -104,7 +105,5 @@ void luab_setmacro(lua_State* L, const char* macro, const char* code,int type){
lua_setfield(L,1,macro);
printf("gettop %d\n",lua_gettop(L));
lua_settop(L,0);


}

0 comments on commit 0540f4f

Please sign in to comment.