xref: /freebsd/contrib/llvm-project/lldb/bindings/lua/lua-swigsafecast.swig (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1template <typename SBClass> void PushSBClass(lua_State *L, SBClass *obj);
2
3void PushSBClass(lua_State *L, lldb::SBFrame *frame_sb) {
4  SWIG_NewPointerObj(L, frame_sb, SWIGTYPE_p_lldb__SBFrame, 0);
5}
6
7void PushSBClass(lua_State *L,
8                 lldb::SBBreakpointLocation *breakpoint_location_sb) {
9  SWIG_NewPointerObj(L, breakpoint_location_sb,
10                     SWIGTYPE_p_lldb__SBBreakpointLocation, 0);
11}
12
13void PushSBClass(lua_State *L, lldb::SBWatchpoint *watchpoint_sb) {
14  SWIG_NewPointerObj(L, watchpoint_sb, SWIGTYPE_p_lldb__SBWatchpoint, 0);
15}
16
17void PushSBClass(lua_State *L, lldb::SBStructuredData *structured_data_sb) {
18  SWIG_NewPointerObj(L, structured_data_sb, SWIGTYPE_p_lldb__SBStructuredData,
19                     0);
20}
21