summaryrefslogtreecommitdiffstats
path: root/module/lua/lapi.c
diff options
context:
space:
mode:
authorDon Brady <[email protected]>2018-02-08 09:31:15 -0700
committerBrian Behlendorf <[email protected]>2018-02-08 15:29:38 -0800
commitfc5d4b6737b810be88d60ca5fa9de7e2fba4e26d (patch)
tree6772520c8a4902507678dcc731bf820e57cabc48 /module/lua/lapi.c
parentee00bfb2e6d50b75b045a37eae5b85a048a05aa7 (diff)
Increase code coverage for Lua libraries
Add test coverage for lua libraries Remove dead code in Lua implementation Signed-off-by: Don Brady <[email protected]>
Diffstat (limited to 'module/lua/lapi.c')
-rw-r--r--module/lua/lapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/lua/lapi.c b/module/lua/lapi.c
index cd2cc42ae..c8b49dc63 100644
--- a/module/lua/lapi.c
+++ b/module/lua/lapi.c
@@ -22,7 +22,6 @@
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
-#include "lundump.h"
#include "lvm.h"
@@ -991,7 +990,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
return status;
}
-
+#if defined(LUA_USE_DUMP)
LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
int status;
TValue *o;
@@ -1005,7 +1004,7 @@ LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
lua_unlock(L);
return status;
}
-
+#endif
LUA_API int lua_status (lua_State *L) {
return L->status;