seqlua

changeset 53:664736a8fcbf

Included mode argument for seqlua_iterloop in README
author jbe
date Tue Aug 26 23:53:29 2014 +0200 (2014-08-26)
parents 3362ec36cb09
children 92ce3958aca7
files README
line diff
     1.1 --- a/README	Tue Aug 26 21:10:03 2014 +0200
     1.2 +++ b/README	Tue Aug 26 23:53:29 2014 +0200
     1.3 @@ -261,9 +261,9 @@
     1.4  
     1.5  In ``seqlualib.h``, the following macro is defined:
     1.6  
     1.7 -    #define seqlua_iterloop(L, iter, idx) \
     1.8 +    #define seqlua_iterloop(L, iter, mode, idx) \
     1.9        for ( \
    1.10 -        seqlua_iterinit((L), (iter), (idx)); \
    1.11 +        seqlua_iterinit((L), (iter), (mode), (idx)); \
    1.12          seqlua_iternext(iter); \
    1.13        )
    1.14  
    1.15 @@ -271,7 +271,7 @@
    1.16  
    1.17      #define seqlua_iterloopauto(L, iter, idx) \
    1.18        for ( \
    1.19 -        seqlua_iterinit((L), (iter), (idx)); \
    1.20 +        seqlua_iterinit((L), (iter), (mode), (idx)); \
    1.21          seqlua_iternext(iter); \
    1.22          lua_pop((L), 1) \
    1.23        )
    1.24 @@ -281,7 +281,7 @@
    1.25  
    1.26      int printcsv(lua_State *L) {
    1.27        seqlua_Iterator iter;
    1.28 -      seqlua_iterloop(L, &iter, 1) {
    1.29 +      seqlua_iterloop(L, &iter, SEQLUA_MODE_CALL, 1) {
    1.30          if (seqlua_itercount(&iter) > 1) fputs(",", stdout);
    1.31          fputs(luaL_tolstring(L, -1, NULL), stdout);
    1.32          // two values need to be popped (the value pushed by

Impressum / About Us