seqlua

diff seqlualib.h @ 25:44880bcfc323

Macro seqlua_iterloop doesn't automatically pop the value anymore (use seqlua_iterloopauto instead); New function string.concat(sep, seq) introduced
author jbe
date Thu Aug 21 21:32:01 2014 +0200 (2014-08-21)
parents 28d472cc7a9b
children 367fc70acc15
line diff
     1.1 --- a/seqlualib.h	Thu Aug 21 20:20:20 2014 +0200
     1.2 +++ b/seqlualib.h	Thu Aug 21 21:32:01 2014 +0200
     1.3 @@ -16,6 +16,12 @@
     1.4    for ( \
     1.5      seqlua_iterinit((L), (iter), (idx)); \
     1.6      seqlua_iternext(iter); \
     1.7 +  )
     1.8 +
     1.9 +#define seqlua_iterloopauto(L, iter, idx) \
    1.10 +  for ( \
    1.11 +    seqlua_iterinit((L), (iter), (idx)); \
    1.12 +    seqlua_iternext(iter); \
    1.13      lua_pop((L), 1) \
    1.14    )
    1.15  

Impressum / About Us