seqlua

changeset 1:158dfce546c0

Explain extra lua_pop(L, 1) in README where seqlua_iterloop macro is explained
author jbe
date Wed Aug 20 01:09:36 2014 +0200 (2014-08-20)
parents 47f9b323d68c
children 0617c8368132
files README
line diff
     1.1 --- a/README	Wed Aug 20 00:39:10 2014 +0200
     1.2 +++ b/README	Wed Aug 20 01:09:36 2014 +0200
     1.3 @@ -123,7 +123,7 @@
     1.4        seqlua_iterloop(L, &iter, 1) {
     1.5          if (seqlua_itercount(&iter) > 1) fputs(",", stdout);
     1.6          fputs(luaL_tolstring(L, -1, NULL), stdout);
     1.7 -        lua_pop(L, 1);
     1.8 +        lua_pop(L, 1);  // pops value that luaL_tolstring pushed onto stack
     1.9        }
    1.10        fputs("\n", stdout);
    1.11        return 0;

Impressum / About Us