diff options
author | daurnimator <quae@daurnimator.com> | 2018-08-13 15:11:26 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-08-13 15:11:26 +1000 |
commit | e4cdcc5eb020b937182b7a8660c644485a188531 (patch) | |
tree | 1b85499d537981059fe909958544adc007c6cbc1 /src | |
parent | 654d98141f6ce1153eb6c5d35ab39d1f5f9001c5 (diff) | |
download | luaossl-e4cdcc5eb020b937182b7a8660c644485a188531.tar.gz luaossl-e4cdcc5eb020b937182b7a8660c644485a188531.tar.bz2 luaossl-e4cdcc5eb020b937182b7a8660c644485a188531.zip |
add name:each() as an alias for the __pairs metamethod
__pairs is not respected in lua 5.1
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c index 827aa7d..4ffad71 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -5121,6 +5121,7 @@ static int xn__tostring(lua_State *L) { static const auxL_Reg xn_methods[] = { { "add", &xn_add }, { "all", &xn_all }, + { "each", &xn__pairs }, { NULL, NULL }, }; |