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