context.binding.hpp (2506B)
1 // Auto generated code, do not edit. See gen_binding in project root. 2 #ifndef LIBSHIT_BINDING_GENERATOR 3 #if LIBSHIT_WITH_LUA 4 #include <libshit/lua/user_type.hpp> 5 6 7 const char ::Neptools::Context::TYPE_NAME[] = "neptools.context"; 8 9 namespace Libshit::Lua 10 { 11 12 // class neptools.context 13 template<> 14 void TypeRegisterTraits<::Neptools::Context>::Register(TypeBuilder& bld) 15 { 16 bld.Inherit<::Neptools::Context, ::Neptools::ItemWithChildren>(); 17 18 bld.AddFunction< 19 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(const std::string &) const>(&::Neptools::Context::GetLabel) 20 >("get_label"); 21 bld.AddFunction< 22 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(std::string, ::Neptools::ItemPointer)>(&::Neptools::Context::CreateLabel) 23 >("create_label"); 24 bld.AddFunction< 25 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(const std::string &, ::Neptools::ItemPointer)>(&::Neptools::Context::CreateLabelFallback), 26 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(const std::string &, ::Neptools::FilePosition)>(&::Neptools::Context::CreateLabelFallback) 27 >("create_label_fallback"); 28 bld.AddFunction< 29 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(std::string, ::Neptools::ItemPointer)>(&::Neptools::Context::CreateOrSetLabel) 30 >("create_or_set_label"); 31 bld.AddFunction< 32 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(std::string)>(&::Neptools::Context::GetOrCreateDummyLabel) 33 >("get_or_create_dummy_label"); 34 bld.AddFunction< 35 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(::Neptools::ItemPointer)>(&::Neptools::Context::GetLabelTo), 36 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(::Neptools::FilePosition)>(&::Neptools::Context::GetLabelTo), 37 static_cast<::Libshit::NotNull<::Neptools::LabelPtr> (::Neptools::Context::*)(::Neptools::FilePosition, const std::string &)>(&::Neptools::Context::GetLabelTo) 38 >("get_label_to"); 39 bld.AddFunction< 40 static_cast<::Neptools::ItemPointer (::Neptools::Context::*)(::Neptools::FilePosition) const noexcept>(&::Neptools::Context::GetPointer) 41 >("get_pointer"); 42 43 } 44 static TypeRegister::StateRegister<::Neptools::Context> libshit_lua_statereg_cd0c765ad1fd7f69a41b97453ee93c7f4de97b95f4bc545150766ec57060950d; 45 46 } 47 #endif 48 #endif