diff --git a/libs/lua/LuaBridge/detail/Namespace.h b/libs/lua/LuaBridge/detail/Namespace.h index 24d037ecde..4fabf6d7a5 100644 --- a/libs/lua/LuaBridge/detail/Namespace.h +++ b/libs/lua/LuaBridge/detail/Namespace.h @@ -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); } @@ -2066,6 +2067,7 @@ public: .addFunction ("unique", (void (LT::*)())<::unique) # endif #endif + .addFunction ("clear", (void (LT::*)())<::clear) .addExtCFunction ("push_back", &CFunc::pushbackptr); } @@ -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) .addExtCFunction ("iter", &CFunc::ptrListIter) @@ -2163,6 +2166,7 @@ public: //.addVoidPtrConstructor () .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)