seqlua

diff seqlua.c @ 17:12a7a8f5a77d

Bugfix: switched raw and meta helper functions
author jbe
date Wed Aug 20 06:40:46 2014 +0200 (2014-08-20)
parents 040a0ca089c1
children 29792283522f
line diff
     1.1 --- a/seqlua.c	Wed Aug 20 06:38:22 2014 +0200
     1.2 +++ b/seqlua.c	Wed Aug 20 06:40:46 2014 +0200
     1.3 @@ -129,12 +129,12 @@
     1.4    } else if (luaL_getmetafield(L, 1, "__index")) {
     1.5      lua_pushvalue(L, 1);
     1.6      lua_pushinteger(L, 0);
     1.7 -    lua_pushcclosure(L, seqlua_iteratoraux_raw, 2);
     1.8 +    lua_pushcclosure(L, seqlua_iteratoraux_meta, 2);
     1.9    } else {
    1.10      luaL_checktype(L, 1, LUA_TTABLE);
    1.11      lua_pushvalue(L, 1);
    1.12      lua_pushinteger(L, 0);
    1.13 -    lua_pushcclosure(L, seqlua_iteratoraux_meta, 2);
    1.14 +    lua_pushcclosure(L, seqlua_iteratoraux_raw, 2);
    1.15    }
    1.16    return 1;
    1.17  }

Impressum / About Us