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, StructuredDataImpl *extra_args_impl);
21 
22 llvm::Expected<bool> LLDBSwigLuaWatchpointCallbackFunction(
23     lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp);
24 
25 } // namespace lldb_private
26 
27 #endif // LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
28