From 6a280dc131e00f71cc70ada67a00e235f7a6c79d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 27 Apr 2014 03:25:47 -0400 Subject: [PATCH] Format changes --- sol/userdata.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sol/userdata.hpp b/sol/userdata.hpp index 0c1675e8..0d4e0bda 100644 --- a/sol/userdata.hpp +++ b/sol/userdata.hpp @@ -86,7 +86,7 @@ private: } }; - template + template struct destructor { static int destruct(lua_State* L) { userdata_t udata = stack::get(L, 1); @@ -97,16 +97,16 @@ private: } }; - template + template void build_function_tables() {} - template - void build_function_tables(std::string name,Ret T::* func, Args&&... args) { - typedef typename std::decay::type fx_t; + template + void build_function_tables(std::string name, Ret T::* func, Args&&... args) { + typedef typename std::decay::type function_type; functionnames.push_back(std::move(name)); - functions.emplace_back(detail::make_unique>(std::move(func))); - functiontable.push_back({ functionnames.back().c_str(), &base_function::userdata::call }); - build_function_tables(std::forward(args)...); + functions.emplace_back(detail::make_unique>(std::move(func))); + functiontable.push_back({ functionnames.back().c_str(), &base_function::userdata::call }); + build_function_tables(std::forward(args)...); } public: