From bf03e17c570171c7a52117fe63ace89d58f328d5 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sun, 8 Dec 2019 15:32:57 -0800 Subject: [Lldb/Lua] Generate Lua Bindings This patch uses SWIG to generate the Lua bindings for the SB API. It covers most of the API, but some methods require a type map similar to Python. Discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html Differential revision: https://reviews.llvm.org/D71235 --- lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/unittests/ScriptInterpreter') diff --git a/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp b/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp index fa8e61a69b3..464babcb290 100644 --- a/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp +++ b/lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp @@ -11,6 +11,8 @@ using namespace lldb_private; +extern "C" int luaopen_lldb(lua_State *L) { return 0; } + TEST(LuaTest, RunValid) { Lua lua; llvm::Error error = lua.Run("foo = 1"); -- cgit v1.2.3