Add Lua bindings for std::list/vector clear
This commit is contained in:
parent
0afc0dd50d
commit
5bbd248384
@ -2030,6 +2030,7 @@ public:
|
||||
.addFunction ("unique", (void (LT::*)())<::unique)
|
||||
# endif
|
||||
#endif
|
||||
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||
.addFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||
.addExtCFunction ("add", &CFunc::tableToList<T, LT>);
|
||||
}
|
||||
@ -2066,6 +2067,7 @@ public:
|
||||
.addFunction ("unique", (void (LT::*)())<::unique)
|
||||
# endif
|
||||
#endif
|
||||
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||
.addExtCFunction ("push_back", &CFunc::pushbackptr<T, LT>);
|
||||
}
|
||||
|
||||
@ -2131,6 +2133,7 @@ public:
|
||||
.addPtrFunction ("unique", (void (LT::*)())<::unique)
|
||||
# endif
|
||||
#endif
|
||||
.addPtrFunction ("clear", (void (LT::*)())<::clear)
|
||||
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
||||
.addExtCFunction ("iter", &CFunc::ptrListIter<T, LT>)
|
||||
@ -2163,6 +2166,7 @@ public:
|
||||
//.addVoidPtrConstructor<LT> ()
|
||||
.addPtrFunction ("empty", (bool (LT::*)()const)<::empty)
|
||||
.addPtrFunction ("size", (T_SIZE (LT::*)()const)<::size)
|
||||
.addPtrFunction ("clear", (void (LT::*)())<::clear)
|
||||
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||
.addPtrFunction ("at", (T_REF (LT::*)(T_SIZE))<::at)
|
||||
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
||||
|
Loading…
Reference in New Issue
Block a user