summaryrefslogtreecommitdiffstats
path: root/src/lua2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua2c.c')
-rw-r--r--src/lua2c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua2c.c b/src/lua2c.c
index 063ac20..261239a 100644
--- a/src/lua2c.c
+++ b/src/lua2c.c
@@ -78,7 +78,12 @@ writer (lua_State * L, const void *p, size_t size, void *u)
static void
dumpit ()
{
+#if LUA_VERSION_NUM >= 503
+ lua_dump (lua_vm, writer, NULL, 0);
+#else
lua_dump (lua_vm, writer, NULL);
+#endif
+
}