diff options
author | william <william@25tandclement.com> | 2014-05-10 18:15:19 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-05-10 18:15:19 -0700 |
commit | b1d1a810d0fdf8456e2180085d801c937bd516b6 (patch) | |
tree | 748477651a2d3be197aeef284d60fb858093a312 /src | |
parent | 9ae361069c9c0528a563a1eecdda12d36af97cfe (diff) | |
download | luaossl-b1d1a810d0fdf8456e2180085d801c937bd516b6.tar.gz luaossl-b1d1a810d0fdf8456e2180085d801c937bd516b6.tar.bz2 luaossl-b1d1a810d0fdf8456e2180085d801c937bd516b6.zip |
add extra argument to be consumed by ellipsis in overloaded macros
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c index 6079bee..d5c0122 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -195,7 +195,7 @@ static void *prepsimple(lua_State *L, const char *tname, int (*gc)(lua_State *)) | |||
195 | } /* prepsimple() */ | 195 | } /* prepsimple() */ |
196 | 196 | ||
197 | #define prepsimple_(a, b, c, ...) prepsimple((a), (b), (c)) | 197 | #define prepsimple_(a, b, c, ...) prepsimple((a), (b), (c)) |
198 | #define prepsimple(...) prepsimple_(__VA_ARGS__, 0) | 198 | #define prepsimple(...) prepsimple_(__VA_ARGS__, 0, 0) |
199 | 199 | ||
200 | 200 | ||
201 | static void *checksimple(lua_State *L, int index, const char *tname) { | 201 | static void *checksimple(lua_State *L, int index, const char *tname) { |
@@ -404,7 +404,7 @@ static BIGNUM *bn_push(lua_State *L) { | |||
404 | 404 | ||
405 | 405 | ||
406 | #define checkbig_(a, b, c, ...) checkbig((a), (b), (c)) | 406 | #define checkbig_(a, b, c, ...) checkbig((a), (b), (c)) |
407 | #define checkbig(...) checkbig_(__VA_ARGS__, &(_Bool){ 0 }) | 407 | #define checkbig(...) checkbig_(__VA_ARGS__, &(_Bool){ 0 }, 0) |
408 | 408 | ||
409 | static BIGNUM *(checkbig)(lua_State *, int, _Bool *); | 409 | static BIGNUM *(checkbig)(lua_State *, int, _Bool *); |
410 | 410 | ||