summaryrefslogtreecommitdiff
path: root/libs/lua
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-17 21:25:56 +0100
committerRobin Gareus <robin@gareus.org>2016-02-22 22:06:47 +0100
commit2b575e4746d996a4e0ce3b2b2ee3c7f53bee6aca (patch)
tree5e99e0a683d5e12412b96605e20952183c1187bc /libs/lua
parente98f21dd297819fcb4931bd5a87474736c7a450e (diff)
NO-OP whitespace
Diffstat (limited to 'libs/lua')
-rw-r--r--libs/lua/LuaBridge/detail/CFunctions.h4
-rw-r--r--libs/lua/LuaBridge/detail/ClassInfo.h2
-rw-r--r--libs/lua/LuaBridge/detail/Constructor.h4
-rw-r--r--libs/lua/LuaBridge/detail/FuncTraits.h2
-rw-r--r--libs/lua/LuaBridge/detail/Iterator.h2
-rw-r--r--libs/lua/LuaBridge/detail/LuaException.h4
-rw-r--r--libs/lua/LuaBridge/detail/LuaHelpers.h6
-rw-r--r--libs/lua/LuaBridge/detail/LuaRef.h2
-rw-r--r--libs/lua/LuaBridge/detail/Namespace.h10
-rw-r--r--libs/lua/LuaBridge/detail/Stack.h44
-rw-r--r--libs/lua/LuaBridge/detail/TypeList.h16
-rw-r--r--libs/lua/LuaBridge/detail/TypeTraits.h6
-rw-r--r--libs/lua/LuaBridge/detail/Userdata.h8
-rw-r--r--libs/lua/LuaBridge/detail/dump.h2
14 files changed, 56 insertions, 56 deletions
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 <vinnie.falco@gmail.com>
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 <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,
diff --git a/libs/lua/LuaBridge/detail/FuncTraits.h b/libs/lua/LuaBridge/detail/FuncTraits.h
index 7eccb61832..a99cbab299 100644
--- a/libs/lua/LuaBridge/detail/FuncTraits.h
+++ b/libs/lua/LuaBridge/detail/FuncTraits.h
@@ -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)
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 <vinnie.falco@gmail.com>
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 <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;
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 <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));
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 <vinnie.falco@gmail.com>
Copyright 2008, Nigel Atkinson <suprapilot+LuaCode@gmail.com>
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 <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.
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 <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];
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 <vinnie.falco@gmail.com>
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 <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);
};
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 <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);
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: