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)
|
.addFunction ("unique", (void (LT::*)())<::unique)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||||
.addFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
.addFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||||
.addExtCFunction ("add", &CFunc::tableToList<T, LT>);
|
.addExtCFunction ("add", &CFunc::tableToList<T, LT>);
|
||||||
}
|
}
|
||||||
@ -2066,6 +2067,7 @@ public:
|
|||||||
.addFunction ("unique", (void (LT::*)())<::unique)
|
.addFunction ("unique", (void (LT::*)())<::unique)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
.addFunction ("clear", (void (LT::*)())<::clear)
|
||||||
.addExtCFunction ("push_back", &CFunc::pushbackptr<T, LT>);
|
.addExtCFunction ("push_back", &CFunc::pushbackptr<T, LT>);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2131,6 +2133,7 @@ public:
|
|||||||
.addPtrFunction ("unique", (void (LT::*)())<::unique)
|
.addPtrFunction ("unique", (void (LT::*)())<::unique)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
.addPtrFunction ("clear", (void (LT::*)())<::clear)
|
||||||
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||||
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
||||||
.addExtCFunction ("iter", &CFunc::ptrListIter<T, LT>)
|
.addExtCFunction ("iter", &CFunc::ptrListIter<T, LT>)
|
||||||
@ -2163,6 +2166,7 @@ public:
|
|||||||
//.addVoidPtrConstructor<LT> ()
|
//.addVoidPtrConstructor<LT> ()
|
||||||
.addPtrFunction ("empty", (bool (LT::*)()const)<::empty)
|
.addPtrFunction ("empty", (bool (LT::*)()const)<::empty)
|
||||||
.addPtrFunction ("size", (T_SIZE (LT::*)()const)<::size)
|
.addPtrFunction ("size", (T_SIZE (LT::*)()const)<::size)
|
||||||
|
.addPtrFunction ("clear", (void (LT::*)())<::clear)
|
||||||
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
.addPtrFunction ("push_back", (void (LT::*)(const T&))<::push_back)
|
||||||
.addPtrFunction ("at", (T_REF (LT::*)(T_SIZE))<::at)
|
.addPtrFunction ("at", (T_REF (LT::*)(T_SIZE))<::at)
|
||||||
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
.addExtCFunction ("add", &CFunc::ptrTableToList<T, LT>)
|
||||||
|
Loading…
Reference in New Issue
Block a user