xref: /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/SWIGLuaBridge.h (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1 //===-- SWIGLuaBridge.h -----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
10 #define LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
11 
12 #include "lldb/lldb-forward.h"
13 #include "lua.hpp"
14 #include "llvm/Support/Error.h"
15 
16 namespace lldb_private {
17 
18 llvm::Expected<bool> LLDBSwigLuaBreakpointCallbackFunction(
19     lua_State *L, lldb::StackFrameSP stop_frame_sp,
20     lldb::BreakpointLocationSP bp_loc_sp,
21     const StructuredDataImpl &extra_args_impl);
22 
23 llvm::Expected<bool> LLDBSwigLuaWatchpointCallbackFunction(
24     lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp);
25 
26 } // namespace lldb_private
27 
28 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
29