aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25tandclement.com> 2014-05-10 18:15:19 -0700
committerLibravatarLibravatar william <william@25tandclement.com> 2014-05-10 18:15:19 -0700
commitb1d1a810d0fdf8456e2180085d801c937bd516b6 (patch)
tree748477651a2d3be197aeef284d60fb858093a312 /src
parent9ae361069c9c0528a563a1eecdda12d36af97cfe (diff)
downloadluaossl-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.c4
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 *))
} /* prepsimple() */
#define prepsimple_(a, b, c, ...) prepsimple((a), (b), (c))
-#define prepsimple(...) prepsimple_(__VA_ARGS__, 0)
+#define prepsimple(...) prepsimple_(__VA_ARGS__, 0, 0)
static void *checksimple(lua_State *L, int index, const char *tname) {
@@ -404,7 +404,7 @@ static BIGNUM *bn_push(lua_State *L) {
#define checkbig_(a, b, c, ...) checkbig((a), (b), (c))
-#define checkbig(...) checkbig_(__VA_ARGS__, &(_Bool){ 0 })
+#define checkbig(...) checkbig_(__VA_ARGS__, &(_Bool){ 0 }, 0)
static BIGNUM *(checkbig)(lua_State *, int, _Bool *);