cstring_item.binding.hpp (1697B)
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::CStringItem::TYPE_NAME[] = "neptools.c_string_item"; 8 9 namespace Libshit::Lua 10 { 11 12 // class neptools.c_string_item 13 template<> 14 void TypeRegisterTraits<::Neptools::CStringItem>::Register(TypeBuilder& bld) 15 { 16 bld.Inherit<::Neptools::CStringItem, ::Neptools::Item>(); 17 18 bld.AddFunction< 19 &::Libshit::Lua::TypeTraits<::Neptools::CStringItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<std::string>>, 20 &::Libshit::Lua::TypeTraits<::Neptools::CStringItem>::Make<LuaGetRef<::Neptools::Item::Key>, LuaGetRef<::Neptools::Context &>, LuaGetRef<const ::Neptools::Source &>> 21 >("new"); 22 bld.AddFunction< 23 static_cast<::Neptools::CStringItem & (*)(::Neptools::ItemPointer)>(::Neptools::CStringItem::CreateAndInsert) 24 >("create_and_insert"); 25 bld.AddFunction< 26 static_cast<std::string (*)(std::string)>(::Neptools::CStringItem::GetLabelName), 27 static_cast<std::string (::Neptools::CStringItem::*)() const>(&::Neptools::CStringItem::GetLabelName) 28 >("get_label_name"); 29 bld.AddFunction< 30 &::Libshit::Lua::GetMember<::Neptools::CStringItem, std::string, &::Neptools::CStringItem::string> 31 >("get_string"); 32 bld.AddFunction< 33 &::Libshit::Lua::SetMember<::Neptools::CStringItem, std::string, &::Neptools::CStringItem::string> 34 >("set_string"); 35 36 } 37 static TypeRegister::StateRegister<::Neptools::CStringItem> libshit_lua_statereg_8574f31e0aa777d45e862de1fb4577df11a1b5b27228b7621fa478aca9fc9067; 38 39 } 40 #endif 41 #endif