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
16namespace lldb_private {
17
18namespace lua {
19
20class SWIGBridge {
21public:
22 static llvm::Expected<bool> LLDBSwigLuaBreakpointCallbackFunction(
23 lua_State *L, lldb::StackFrameSP stop_frame_sp,
24 lldb::BreakpointLocationSP bp_loc_sp,
25 const StructuredDataImpl &extra_args_impl);
26
27 static llvm::Expected<bool> LLDBSwigLuaWatchpointCallbackFunction(
28 lua_State *L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp);
29};
30
31} // namespace lua
32
33} // namespace lldb_private
34
35#endif // LLDB_PLUGINS_SCRIPTINTERPRETER_LUA_SWIGLUABRIDGE_H
36

source code of lldb/source/Plugins/ScriptInterpreter/Lua/SWIGLuaBridge.h