Expose Expat version

Fri, 23 Apr 2021 20:01:26 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 23 Apr 2021 20:01:26 +0100
changeset 32
73adc42f35ce
parent 31
ebb63b55bcc1
child 33
94f496ee93cb

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) {

mercurial