From 2b575e4746d996a4e0ce3b2b2ee3c7f53bee6aca Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 17 Jan 2016 21:25:56 +0100 Subject: NO-OP whitespace --- libs/lua/LuaBridge/detail/CFunctions.h | 4 +-- libs/lua/LuaBridge/detail/ClassInfo.h | 2 +- libs/lua/LuaBridge/detail/Constructor.h | 4 +-- libs/lua/LuaBridge/detail/FuncTraits.h | 2 +- libs/lua/LuaBridge/detail/Iterator.h | 2 +- libs/lua/LuaBridge/detail/LuaException.h | 4 +-- libs/lua/LuaBridge/detail/LuaHelpers.h | 6 ++--- libs/lua/LuaBridge/detail/LuaRef.h | 2 +- libs/lua/LuaBridge/detail/Namespace.h | 10 ++++---- libs/lua/LuaBridge/detail/Stack.h | 44 ++++++++++++++++---------------- libs/lua/LuaBridge/detail/TypeList.h | 16 ++++++------ libs/lua/LuaBridge/detail/TypeTraits.h | 6 ++--- libs/lua/LuaBridge/detail/Userdata.h | 8 +++--- libs/lua/LuaBridge/detail/dump.h | 2 +- 14 files changed, 56 insertions(+), 56 deletions(-) (limited to 'libs/lua/LuaBridge') diff --git a/libs/lua/LuaBridge/detail/CFunctions.h b/libs/lua/LuaBridge/detail/CFunctions.h index 0497b6bb4b..ebf962ed15 100644 --- a/libs/lua/LuaBridge/detail/CFunctions.h +++ b/libs/lua/LuaBridge/detail/CFunctions.h @@ -154,12 +154,12 @@ struct CFunc static int readOnlyError (lua_State* L) { std::string s; - + s = s + "'" + lua_tostring (L, lua_upvalueindex (1)) + "' is read-only"; return luaL_error (L, s.c_str ()); } - + //---------------------------------------------------------------------------- /** lua_CFunction to get a variable. diff --git a/libs/lua/LuaBridge/detail/ClassInfo.h b/libs/lua/LuaBridge/detail/ClassInfo.h index 8d58069477..8639dbec52 100644 --- a/libs/lua/LuaBridge/detail/ClassInfo.h +++ b/libs/lua/LuaBridge/detail/ClassInfo.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco License: The MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/libs/lua/LuaBridge/detail/Constructor.h b/libs/lua/LuaBridge/detail/Constructor.h index 7b2dad0598..bcd4a37995 100644 --- a/libs/lua/LuaBridge/detail/Constructor.h +++ b/libs/lua/LuaBridge/detail/Constructor.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2007, Nathan Reed @@ -180,7 +180,7 @@ struct Constructor struct Constructor > > > > > > > > { static T* call (const TypeListValues License: The MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/libs/lua/LuaBridge/detail/Iterator.h b/libs/lua/LuaBridge/detail/Iterator.h index d883fb3989..d383743d76 100644 --- a/libs/lua/LuaBridge/detail/Iterator.h +++ b/libs/lua/LuaBridge/detail/Iterator.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco License: The MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/libs/lua/LuaBridge/detail/LuaException.h b/libs/lua/LuaBridge/detail/LuaException.h index a0944961ce..a9a3f281d2 100644 --- a/libs/lua/LuaBridge/detail/LuaException.h +++ b/libs/lua/LuaBridge/detail/LuaException.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2008, Nigel Atkinson @@ -27,7 +27,7 @@ */ //============================================================================== -class LuaException : public std::exception +class LuaException : public std::exception { private: lua_State* m_L; diff --git a/libs/lua/LuaBridge/detail/LuaHelpers.h b/libs/lua/LuaBridge/detail/LuaHelpers.h index 7bc84eb164..02e9b2908f 100644 --- a/libs/lua/LuaBridge/detail/LuaHelpers.h +++ b/libs/lua/LuaBridge/detail/LuaHelpers.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2007, Nathan Reed @@ -102,7 +102,7 @@ inline int get_length (lua_State* L, int idx) #endif /** Get a table value, bypassing metamethods. -*/ +*/ inline void rawgetfield (lua_State* L, int index, char const* key) { assert (lua_istable (L, index)); @@ -112,7 +112,7 @@ inline void rawgetfield (lua_State* L, int index, char const* key) } /** Set a table value, bypassing metamethods. -*/ +*/ inline void rawsetfield (lua_State* L, int index, char const* key) { assert (lua_istable (L, index)); diff --git a/libs/lua/LuaBridge/detail/LuaRef.h b/libs/lua/LuaBridge/detail/LuaRef.h index e726bcafe7..d3e3fe6d68 100644 --- a/libs/lua/LuaBridge/detail/LuaRef.h +++ b/libs/lua/LuaBridge/detail/LuaRef.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2008, Nigel Atkinson diff --git a/libs/lua/LuaBridge/detail/Namespace.h b/libs/lua/LuaBridge/detail/Namespace.h index ff22e6b092..f7f484b118 100644 --- a/libs/lua/LuaBridge/detail/Namespace.h +++ b/libs/lua/LuaBridge/detail/Namespace.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2007, Nathan Reed @@ -272,7 +272,7 @@ private: rawsetfield (L, -2, "__newindex"); lua_newtable (L); rawsetfield (L, -2, "__propget"); - + if (Security::hideMetatables ()) { lua_pushnil (L); @@ -457,7 +457,7 @@ private: assert (lua_istable (L, -1)); rawgetfield (L, -1, name); - + if (lua_isnil (L, -1)) { lua_pop (L, 1); @@ -586,7 +586,7 @@ private: { typedef U (*get_t)(); typedef void (*set_t)(U); - + assert (lua_istable (L, -1)); rawgetfield (L, -1, "__propget"); @@ -1031,7 +1031,7 @@ public: return *this; } - + //---------------------------------------------------------------------------- /** Add or replace a property. diff --git a/libs/lua/LuaBridge/detail/Stack.h b/libs/lua/LuaBridge/detail/Stack.h index 1a0aae7c29..2914e7432e 100644 --- a/libs/lua/LuaBridge/detail/Stack.h +++ b/libs/lua/LuaBridge/detail/Stack.h @@ -69,7 +69,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline int get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -83,7 +83,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline int get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -100,7 +100,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline unsigned int get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -114,7 +114,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline unsigned int get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -132,7 +132,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline unsigned char get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -146,7 +146,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline unsigned char get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -164,7 +164,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline short get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -178,7 +178,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline short get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -196,7 +196,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline unsigned short get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -210,7 +210,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline unsigned short get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -228,7 +228,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline long get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -242,7 +242,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline long get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -260,7 +260,7 @@ struct Stack { lua_pushinteger (L, static_cast (value)); } - + static inline unsigned long get (lua_State* L, int index) { return static_cast (luaL_checkinteger (L, index)); @@ -274,7 +274,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline unsigned long get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -292,7 +292,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline float get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -306,7 +306,7 @@ struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline float get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -323,7 +323,7 @@ template <> struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline double get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -336,7 +336,7 @@ template <> struct Stack { lua_pushnumber (L, static_cast (value)); } - + static inline double get (lua_State* L, int index) { return static_cast (luaL_checknumber (L, index)); @@ -353,7 +353,7 @@ struct Stack { { lua_pushboolean (L, value ? 1 : 0); } - + static inline bool get (lua_State* L, int index) { return lua_toboolean (L, index) ? true : false; @@ -366,7 +366,7 @@ struct Stack { { lua_pushboolean (L, value ? 1 : 0); } - + static inline bool get (lua_State* L, int index) { return lua_toboolean (L, index) ? true : false; @@ -385,7 +385,7 @@ struct Stack char str [2] = { value, 0 }; lua_pushstring (L, str); } - + static inline char get (lua_State* L, int index) { return luaL_checkstring (L, index) [0]; @@ -400,7 +400,7 @@ struct Stack char str [2] = { value, 0 }; lua_pushstring (L, str); } - + static inline char get (lua_State* L, int index) { return luaL_checkstring (L, index) [0]; diff --git a/libs/lua/LuaBridge/detail/TypeList.h b/libs/lua/LuaBridge/detail/TypeList.h index 21f850e89d..fc4ce399c7 100644 --- a/libs/lua/LuaBridge/detail/TypeList.h +++ b/libs/lua/LuaBridge/detail/TypeList.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco Copyright 2007, Nathan Reed @@ -26,19 +26,19 @@ SOFTWARE. This file incorporates work covered by the following copyright and - permission notice: + permission notice: The Loki Library Copyright (c) 2001 by Andrei Alexandrescu This code accompanies the book: - Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design + Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design Patterns Applied". Copyright (c) 2001. Addison-Wesley. - Permission to use, copy, modify, distribute and sell this software for any - purpose is hereby granted without fee, provided that the above copyright - notice appear in all copies and that both that copyright notice and this + Permission to use, copy, modify, distribute and sell this software for any + purpose is hereby granted without fee, provided that the above copyright + notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. - The author or Addison-Welsey Longman make no representations about the - suitability of this software for any purpose. It is provided "as is" + The author or Addison-Welsey Longman make no representations about the + suitability of this software for any purpose. It is provided "as is" without express or implied warranty. */ //============================================================================== diff --git a/libs/lua/LuaBridge/detail/TypeTraits.h b/libs/lua/LuaBridge/detail/TypeTraits.h index 5dd077194f..a6b9323393 100644 --- a/libs/lua/LuaBridge/detail/TypeTraits.h +++ b/libs/lua/LuaBridge/detail/TypeTraits.h @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ /* https://github.com/vinniefalco/LuaBridge - + Copyright 2012, Vinnie Falco License: The MIT License (http://www.opensource.org/licenses/mit-license.php) @@ -81,10 +81,10 @@ struct TypeTraits template static no& test (typename C::isNotContainer*); - + template static yes& test (...); - + public: static const bool value = sizeof (test >(0)) == sizeof (yes); }; diff --git a/libs/lua/LuaBridge/detail/Userdata.h b/libs/lua/LuaBridge/detail/Userdata.h index 19451bd7d3..d87c1b0306 100644 --- a/libs/lua/LuaBridge/detail/Userdata.h +++ b/libs/lua/LuaBridge/detail/Userdata.h @@ -112,7 +112,7 @@ private: { lua_pop (L, 2); mismatch = true; - } + } } if (!mismatch) @@ -262,7 +262,7 @@ ud __parent (nil) { lua_pop (L, 2); mismatch = true; - } + } } else { @@ -796,7 +796,7 @@ struct RefStackHelper luaL_error (L, "nil passed to reference"); return *t; } - + }; // reference to const @@ -804,7 +804,7 @@ template struct Stack { typedef RefStackHelper ::value> helper_t; - + static inline void push (lua_State* L, T const& t) { helper_t::push (L, t); diff --git a/libs/lua/LuaBridge/detail/dump.h b/libs/lua/LuaBridge/detail/dump.h index c066803573..82f6a45ac1 100644 --- a/libs/lua/LuaBridge/detail/dump.h +++ b/libs/lua/LuaBridge/detail/dump.h @@ -13,7 +13,7 @@ std::string dumpLuaState(lua_State *L) { ostr << " " << i << ": '" << lua_tostring(L, i) << "'\n"; break; case LUA_TBOOLEAN: - ostr << " " << i << ": " << + ostr << " " << i << ": " << (lua_toboolean(L, i) ? "true" : "false") << "\n"; break; case LUA_TNUMBER: -- cgit v1.2.3