diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-08 15:32:57 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-21 11:28:41 -0800 |
| commit | bf03e17c570171c7a52117fe63ace89d58f328d5 (patch) | |
| tree | 8361b20a3a9569ef8cf70fed5033e24c414e99c7 /lldb/unittests/ScriptInterpreter | |
| parent | 2203089a60d826e882e2ccfc5cc5d361b4f91078 (diff) | |
| download | bcm5719-llvm-bf03e17c570171c7a52117fe63ace89d58f328d5.tar.gz bcm5719-llvm-bf03e17c570171c7a52117fe63ace89d58f328d5.zip | |
[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
Diffstat (limited to 'lldb/unittests/ScriptInterpreter')
| -rw-r--r-- | lldb/unittests/ScriptInterpreter/Lua/LuaTests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |

