NO-OP whitespace
authorRobin Gareus <robin@gareus.org>
Sun, 17 Jan 2016 20:25:56 +0000 (21:25 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 22 Feb 2016 21:06:47 +0000 (22:06 +0100)
14 files changed:
libs/lua/LuaBridge/detail/CFunctions.h
libs/lua/LuaBridge/detail/ClassInfo.h
libs/lua/LuaBridge/detail/Constructor.h
libs/lua/LuaBridge/detail/FuncTraits.h
libs/lua/LuaBridge/detail/Iterator.h
libs/lua/LuaBridge/detail/LuaException.h
libs/lua/LuaBridge/detail/LuaHelpers.h
libs/lua/LuaBridge/detail/LuaRef.h
libs/lua/LuaBridge/detail/Namespace.h
libs/lua/LuaBridge/detail/Stack.h
libs/lua/LuaBridge/detail/TypeList.h
libs/lua/LuaBridge/detail/TypeTraits.h
libs/lua/LuaBridge/detail/Userdata.h
libs/lua/LuaBridge/detail/dump.h

index 0497b6bb4b97850b4678ad2335c2ea6b06cc3a1b..ebf962ed15981cc7ce3ab959af1516c3d371b335 100644 (file)
@@ -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.
index 8d580694777bf34c8300aed617a27895ef84298c..8639dbec522453d80fdb182c18ac0b85ef72df59 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
 
   License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
index 7b2dad059861c39c3f045859fa81680dc903c29a..bcd4a37995eff77eca20bdb170c29aca9b786694 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   Copyright 2007, Nathan Reed
 
@@ -180,7 +180,7 @@ struct Constructor <T, TypeList <P1, TypeList <P2, TypeList <P3,
 template <class T, class P1, class P2, class P3, class P4,
   class P5, class P6, class P7, class P8>
 struct Constructor <T, TypeList <P1, TypeList <P2, TypeList <P3,
-  TypeList <P4, TypeList <P5, TypeList <P6, TypeList <P7, 
+  TypeList <P4, TypeList <P5, TypeList <P6, TypeList <P7,
   TypeList <P8> > > > > > > > >
 {
   static T* call (const TypeListValues<TypeList <P1, TypeList <P2,
index 7eccb61832ba8ae5e838ed4f62d38e602b924ce8..a99cbab299cb9f149a2d11c865e2d5d9b9e8e84c 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
 
   License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
index d883fb3989af5baca3921905ae31bd7510822e5d..d383743d760c63eaa1ccf9ac775255463839ec65 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
 
   License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
index a0944961ced87cef67def9b6544c46641c2247a3..a9a3f281d2dec1a2f9b6350a3261427512ef00d5 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   Copyright 2008, Nigel Atkinson <suprapilot+LuaCode@gmail.com>
 
@@ -27,7 +27,7 @@
 */
 //==============================================================================
 
-class LuaException : public std::exception 
+class LuaException : public std::exception
 {
 private:
   lua_State* m_L;
index 7bc84eb16420fec65195c35c1d3409c74b07ba7a..02e9b2908f68f5389038f8fd3c7647716bbcd099 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   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));
index e726bcafe7bbf0af9bad1e7d99d434e24f1391de..d3e3fe6d68d63ea20a6f371480a2972c4f41c14b 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   Copyright 2008, Nigel Atkinson <suprapilot+LuaCode@gmail.com>
 
index ff22e6b092c398a02e014879c14c09cf476b973f..f7f484b1187f4d039d2d84d2f3cafc6ff777c7d4 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   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.
index 1a0aae7c29baf592b06130271e8025af6da3e02f..2914e7432ebac95a53687a0da0dff882a2071c68 100644 (file)
@@ -69,7 +69,7 @@ struct Stack <int>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline int get (lua_State* L, int index)
   {
     return static_cast <int> (luaL_checkinteger (L, index));
@@ -83,7 +83,7 @@ struct Stack <int const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline int get (lua_State* L, int index)
   {
     return static_cast <int > (luaL_checknumber (L, index));
@@ -100,7 +100,7 @@ struct Stack <unsigned int>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline unsigned int get (lua_State* L, int index)
   {
     return static_cast <unsigned int> (luaL_checkinteger (L, index));
@@ -114,7 +114,7 @@ struct Stack <unsigned int const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline unsigned int get (lua_State* L, int index)
   {
     return static_cast <unsigned int > (luaL_checknumber (L, index));
@@ -132,7 +132,7 @@ struct Stack <unsigned char>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline unsigned char get (lua_State* L, int index)
   {
     return static_cast <unsigned char> (luaL_checkinteger (L, index));
@@ -146,7 +146,7 @@ struct Stack <unsigned char const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline unsigned char get (lua_State* L, int index)
   {
     return static_cast <unsigned char> (luaL_checknumber (L, index));
@@ -164,7 +164,7 @@ struct Stack <short>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline short get (lua_State* L, int index)
   {
     return static_cast <short> (luaL_checkinteger (L, index));
@@ -178,7 +178,7 @@ struct Stack <short const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline short get (lua_State* L, int index)
   {
     return static_cast <short> (luaL_checknumber (L, index));
@@ -196,7 +196,7 @@ struct Stack <unsigned short>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline unsigned short get (lua_State* L, int index)
   {
     return static_cast <unsigned short> (luaL_checkinteger (L, index));
@@ -210,7 +210,7 @@ struct Stack <unsigned short const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline unsigned short get (lua_State* L, int index)
   {
     return static_cast <unsigned short> (luaL_checknumber (L, index));
@@ -228,7 +228,7 @@ struct Stack <long>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline long get (lua_State* L, int index)
   {
     return static_cast <long> (luaL_checkinteger (L, index));
@@ -242,7 +242,7 @@ struct Stack <long const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline long get (lua_State* L, int index)
   {
     return static_cast <long> (luaL_checknumber (L, index));
@@ -260,7 +260,7 @@ struct Stack <unsigned long>
   {
     lua_pushinteger (L, static_cast <lua_Integer> (value));
   }
-  
+
   static inline unsigned long get (lua_State* L, int index)
   {
     return static_cast <unsigned long> (luaL_checkinteger (L, index));
@@ -274,7 +274,7 @@ struct Stack <unsigned long const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline unsigned long get (lua_State* L, int index)
   {
     return static_cast <unsigned long> (luaL_checknumber (L, index));
@@ -292,7 +292,7 @@ struct Stack <float>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline float get (lua_State* L, int index)
   {
     return static_cast <float> (luaL_checknumber (L, index));
@@ -306,7 +306,7 @@ struct Stack <float const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline float get (lua_State* L, int index)
   {
     return static_cast <float> (luaL_checknumber (L, index));
@@ -323,7 +323,7 @@ template <> struct Stack <double>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline double get (lua_State* L, int index)
   {
     return static_cast <double> (luaL_checknumber (L, index));
@@ -336,7 +336,7 @@ template <> struct Stack <double const&>
   {
     lua_pushnumber (L, static_cast <lua_Number> (value));
   }
-  
+
   static inline double get (lua_State* L, int index)
   {
     return static_cast <double> (luaL_checknumber (L, index));
@@ -353,7 +353,7 @@ struct Stack <bool> {
   {
     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 <bool const&> {
   {
     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>
     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 const&>
     char str [2] = { value, 0 };
     lua_pushstring (L, str);
   }
-  
+
   static inline char get (lua_State* L, int index)
   {
     return luaL_checkstring (L, index) [0];
index 21f850e89df981e6b6ddcd6adaeac4fa1908a72b..fc4ce399c7b3300713f35721746d43e5632b8deb 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
   Copyright 2007, Nathan Reed
 
   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.
 */
 //==============================================================================
index 5dd077194f1abbf46fa56b2c0c5e77f5daa56472..a6b93233932cdb4b99874fc46d57ff5ef28d72bc 100644 (file)
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 /*
   https://github.com/vinniefalco/LuaBridge
-  
+
   Copyright 2012, Vinnie Falco <vinnie.falco@gmail.com>
 
   License: The MIT License (http://www.opensource.org/licenses/mit-license.php)
@@ -81,10 +81,10 @@ struct TypeTraits
 
     template <typename C>
     static no& test (typename C::isNotContainer*);
+
     template <typename>
     static yes& test (...);
+
   public:
     static const bool value = sizeof (test <ContainerTraits <T> >(0)) == sizeof (yes);
   };
index 19451bd7d3e9ebfb1604e1f03e96f6be16a2abd7..d87c1b0306bcaf44bcbbc9b663c5446759ba2281 100644 (file)
@@ -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 <T, false>
       luaL_error (L, "nil passed to reference");
     return *t;
   }
-    
+
 };
 
 // reference to const
@@ -804,7 +804,7 @@ template <class T>
 struct Stack <T const&>
 {
   typedef RefStackHelper <T, TypeTraits::isContainer <T>::value> helper_t;
-  
+
   static inline void push (lua_State* L, T const& t)
   {
     helper_t::push (L, t);
index c0668035737838533cef24cdf5b1afd511e0216c..82f6a45ac1da56a066a467d01b316dc34c947b2f 100644 (file)
@@ -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: