Fri, 23 Apr 2021 20:01:26 +0100
Expose Expat version
src/lxplib.c | file | annotate | diff | comparison | revisions |
--- a/src/lxplib.c Fri Apr 23 18:28:14 2021 +0100 +++ b/src/lxplib.c Fri Apr 23 20:01:26 2021 +0100 @@ -587,6 +587,9 @@ lua_pushliteral (L, "_VERSION"); lua_pushliteral (L, "LuaExpat 1.3.0"); lua_settable (L, -3); + lua_pushliteral (L, "_EXPAT_VERSION"); + lua_pushstring (L, XML_ExpatVersion()); + lua_settable (L, -3); } int luaopen_lxp (lua_State *L) {