Răsfoiți Sursa

Suppress unavoidable build warnings when generating Lua bindings.

Yao Wei Tjong 姚伟忠 10 ani în urmă
părinte
comite
1f3f5e4933

+ 8 - 7
Source/ThirdParty/toluapp/src/bin/lua/variable.lua

@@ -9,7 +9,7 @@
 -- the author has no obligation to provide maintenance, support, updates,
 -- enhancements, or modifications.
 
--- Modified by Aster Jian for Urho3D
+-- Modified by Aster Jian and Yao Wei Tjong for Urho3D
 
 -- Variable class
 -- Represents a extern variable or a public member of a class.
@@ -295,12 +295,13 @@ function classVariable:register (pre)
 	end
  pre = pre or ''
  local parent = self:inmodule() or self:innamespace() or self:inclass()
- if not parent then
-  if classVariable._warning==nil then
-   warning("Mapping variable to global may degrade performance")
-   classVariable._warning = 1
-  end
- end
+-- Urho3D - suppress warnings
+-- if not parent then
+--  if classVariable._warning==nil then
+--   warning("Mapping variable to global may degrade performance")
+--   classVariable._warning = 1
+--  end
+-- end
  if self.csetname then
   output(pre..'tolua_variable(tolua_S,"'..self.lname..'",'..self.cgetname..','..self.csetname..');')
  else

+ 26 - 36
Source/ThirdParty/toluapp/src/bin/toluabind.c

@@ -1,6 +1,6 @@
 /*
 ** Lua binding: tolua
-** Generated automatically by tolua++-1.0.93 on Fri Oct 11 01:25:57 2013.
+** Generated automatically by tolua++-1.0.93 on Mon Aug 10 22:44:52 2015.
 */
 
 #ifndef __cplusplus
@@ -3966,41 +3966,31 @@ TOLUA_API int tolua_tolua_open (lua_State* tolua_S)
   101, 40, 41, 32,111,114, 32,115,101,108,102, 58,105,110,110,
    97,109,101,115,112, 97, 99,101, 40, 41, 32,111,114, 32,115,
   101,108,102, 58,105,110, 99,108, 97,115,115, 40, 41, 10,105,
-  102, 32,110,111,116, 32,112, 97,114,101,110,116, 32,116,104,
-  101,110, 10,105,102, 32, 99,108, 97,115,115, 86, 97,114,105,
-   97, 98,108,101, 46, 95,119, 97,114,110,105,110,103, 61, 61,
-  110,105,108, 32,116,104,101,110, 10,119, 97,114,110,105,110,
-  103, 40, 34, 77, 97,112,112,105,110,103, 32,118, 97,114,105,
-   97, 98,108,101, 32,116,111, 32,103,108,111, 98, 97,108, 32,
-  109, 97,121, 32,100,101,103,114, 97,100,101, 32,112,101,114,
-  102,111,114,109, 97,110, 99,101, 34, 41, 10, 99,108, 97,115,
-  115, 86, 97,114,105, 97, 98,108,101, 46, 95,119, 97,114,110,
-  105,110,103, 32, 61, 32, 49, 10,101,110,100, 10,101,110,100,
-   10,105,102, 32,115,101,108,102, 46, 99,115,101,116,110, 97,
-  109,101, 32,116,104,101,110, 10,111,117,116,112,117,116, 40,
-  112,114,101, 46, 46, 39,116,111,108,117, 97, 95,118, 97,114,
-  105, 97, 98,108,101, 40,116,111,108,117, 97, 95, 83, 44, 34,
-   39, 46, 46,115,101,108,102, 46,108,110, 97,109,101, 46, 46,
-   39, 34, 44, 39, 46, 46,115,101,108,102, 46, 99,103,101,116,
-  110, 97,109,101, 46, 46, 39, 44, 39, 46, 46,115,101,108,102,
-   46, 99,115,101,116,110, 97,109,101, 46, 46, 39, 41, 59, 39,
-   41, 10,101,108,115,101, 10,111,117,116,112,117,116, 40,112,
-  114,101, 46, 46, 39,116,111,108,117, 97, 95,118, 97,114,105,
-   97, 98,108,101, 40,116,111,108,117, 97, 95, 83, 44, 34, 39,
-   46, 46,115,101,108,102, 46,108,110, 97,109,101, 46, 46, 39,
-   34, 44, 39, 46, 46,115,101,108,102, 46, 99,103,101,116,110,
-   97,109,101, 46, 46, 39, 44, 78, 85, 76, 76, 41, 59, 39, 41,
-   10,101,110,100, 10,101,110,100, 10,102,117,110, 99,116,105,
-  111,110, 32, 95, 86, 97,114,105, 97, 98,108,101, 32, 40,116,
-   41, 10,115,101,116,109,101,116, 97,116, 97, 98,108,101, 40,
-  116, 44, 99,108, 97,115,115, 86, 97,114,105, 97, 98,108,101,
-   41, 10, 97,112,112,101,110,100, 40,116, 41, 10,114,101,116,
-  117,114,110, 32,116, 10,101,110,100, 10,102,117,110, 99,116,
-  105,111,110, 32, 86, 97,114,105, 97, 98,108,101, 32, 40,115,
-   41, 10,114,101,116,117,114,110, 32, 95, 86, 97,114,105, 97,
-   98,108,101, 32, 40, 68,101, 99,108, 97,114, 97,116,105,111,
-  110, 40,115, 44, 39,118, 97,114, 39, 41, 41, 10,101,110,100,
-   45, 45, 45, 45, 45, 45, 45, 45, 45, 45,32
+  102, 32,115,101,108,102, 46, 99,115,101,116,110, 97,109,101,
+   32,116,104,101,110, 10,111,117,116,112,117,116, 40,112,114,
+  101, 46, 46, 39,116,111,108,117, 97, 95,118, 97,114,105, 97,
+   98,108,101, 40,116,111,108,117, 97, 95, 83, 44, 34, 39, 46,
+   46,115,101,108,102, 46,108,110, 97,109,101, 46, 46, 39, 34,
+   44, 39, 46, 46,115,101,108,102, 46, 99,103,101,116,110, 97,
+  109,101, 46, 46, 39, 44, 39, 46, 46,115,101,108,102, 46, 99,
+  115,101,116,110, 97,109,101, 46, 46, 39, 41, 59, 39, 41, 10,
+  101,108,115,101, 10,111,117,116,112,117,116, 40,112,114,101,
+   46, 46, 39,116,111,108,117, 97, 95,118, 97,114,105, 97, 98,
+  108,101, 40,116,111,108,117, 97, 95, 83, 44, 34, 39, 46, 46,
+  115,101,108,102, 46,108,110, 97,109,101, 46, 46, 39, 34, 44,
+   39, 46, 46,115,101,108,102, 46, 99,103,101,116,110, 97,109,
+  101, 46, 46, 39, 44, 78, 85, 76, 76, 41, 59, 39, 41, 10,101,
+  110,100, 10,101,110,100, 10,102,117,110, 99,116,105,111,110,
+   32, 95, 86, 97,114,105, 97, 98,108,101, 32, 40,116, 41, 10,
+  115,101,116,109,101,116, 97,116, 97, 98,108,101, 40,116, 44,
+   99,108, 97,115,115, 86, 97,114,105, 97, 98,108,101, 41, 10,
+   97,112,112,101,110,100, 40,116, 41, 10,114,101,116,117,114,
+  110, 32,116, 10,101,110,100, 10,102,117,110, 99,116,105,111,
+  110, 32, 86, 97,114,105, 97, 98,108,101, 32, 40,115, 41, 10,
+  114,101,116,117,114,110, 32, 95, 86, 97,114,105, 97, 98,108,
+  101, 32, 40, 68,101, 99,108, 97,114, 97,116,105,111,110, 40,
+  115, 44, 39,118, 97,114, 39, 41, 41, 10,101,110,100, 45, 45,
+  32
   };
   tolua_dobuffer(tolua_S,(char*)B,sizeof(B),"tolua embedded: lua/variable.lua");
   lua_settop(tolua_S, top);

+ 1 - 1
Source/ThirdParty/toluapp/src/bin/toluabind.h

@@ -1,6 +1,6 @@
 /*
 ** Lua binding: tolua
-** Generated automatically by tolua++-1.0.93 on Fri Oct 11 01:25:57 2013.
+** Generated automatically by tolua++-1.0.93 on Mon Aug 10 22:44:52 2015.
 */
 
 /* Exported function */

+ 7 - 8
Source/Urho3D/LuaScript/pkgs/Core/Spline.pkg

@@ -15,20 +15,19 @@ class Spline
     Spline(const Spline& rhs);
     // When export constructor, the destructor must export also. otherwise Lua will not collect the object.
     ~Spline();
-    
-    void operator = (const Spline& rhs);
-    bool operator == (const Spline& rhs) const;
-    
+
+    bool operator ==(const Spline& rhs) const;
+
     Variant GetPoint(float f) const;
-    
+
     Variant GetKnot(unsigned index) const;
     void SetKnot(const Variant& knot, unsigned);
     void AddKnot(const Variant& knot);
     void AddKnot(const Variant& knot, unsigned index);
     void RemoveKnot();
     void RemoveKnot(unsigned index);
-        
+
     void Clear();
-    
+
     tolua_property__get_set InterpolationMode interpolationMode;
-};
+};

+ 11 - 11
Source/Urho3D/LuaScript/pkgs/Math/BoundingBox.pkg

@@ -11,9 +11,9 @@ class BoundingBox
     BoundingBox(const Polyhedron& poly);
     BoundingBox(const Sphere& sphere);
     ~BoundingBox();
-    
-    bool operator == (const BoundingBox& rhs) const;
-    
+
+    bool operator ==(const BoundingBox& rhs) const;
+
     void Define(const BoundingBox& box);
     void Define(const Rect& rect);
     void Define(const Vector3& min, const Vector3& max);
@@ -22,38 +22,38 @@ class BoundingBox
     void Define(const Frustum& frustum);
     void Define(const Polyhedron& poly);
     void Define(const Sphere& sphere);
-    
+
     void Merge(const Vector3& point);
     void Merge(const BoundingBox& box);
     void Merge(const Frustum& frustum);
     void Merge(const Polyhedron& poly);
     void Merge(const Sphere& sphere);
-    
+
     void Clip(const BoundingBox& box);
     void Transform(const Matrix3& transform);
     void Transform(const Matrix3x4& transform);
     void Clear();
-    
+
     Vector3 Center() const;
     Vector3 Size() const;
     Vector3 HalfSize() const;
-    
+
     BoundingBox Transformed(const Matrix3& transform) const;
     BoundingBox Transformed(const Matrix3x4& transform) const;
     Rect Projected(const Matrix4& projection) const;
-    
+
     Intersection IsInside(const Vector3& point) const;
     Intersection IsInside(const BoundingBox& box) const;
     Intersection IsInsideFast(const BoundingBox& box) const;
     Intersection IsInside(const Sphere& sphere) const;
     Intersection IsInsideFast(const Sphere& sphere) const;
-    
+
     String ToString() const;
-    
+
     Vector3 min_ @ min;
     Vector3 max_ @ max;
     bool defined_ @ defined;
-    
+
     tolua_readonly tolua_property__no_prefix Vector3 center;
     tolua_readonly tolua_property__no_prefix Vector3 size;
     tolua_readonly tolua_property__no_prefix Vector3 halfSize;

+ 4 - 4
Source/Urho3D/LuaScript/pkgs/Math/Color.pkg

@@ -8,11 +8,11 @@ class Color
     Color(float r, float g, float b);
     Color(float r, float g, float b, float a);
     ~Color();
-    
-    bool operator == (const Color& rhs) const;
+
+    bool operator ==(const Color& rhs) const;
     Color operator * (float rhs) const;
     Color operator + (const Color& rhs);
-    
+
     unsigned ToUInt() const;
     Vector3 ToHSL() const;
     Vector3 ToHSV() const;
@@ -44,7 +44,7 @@ class Color
     bool Equals(const Color& rhs) const;
 
     String ToString() const;
-    
+
     float r_ @ r;
     float g_ @ g;
     float b_ @ b;

+ 5 - 5
Source/Urho3D/LuaScript/pkgs/Math/Matrix3.pkg

@@ -8,18 +8,18 @@ class Matrix3
             float v10, float v11, float v12,
             float v20, float v21, float v22);
     ~Matrix3();
-    
-    bool operator == (const Matrix3& rhs) const;
-    
+
+    bool operator ==(const Matrix3& rhs) const;
+
     Vector3 operator * (const Vector3& rhs) const;
     Matrix3 operator + (const Matrix3& rhs) const;
     Matrix3 operator - (const Matrix3& rhs) const;
     Matrix3 operator * (float rhs) const;
     Matrix3 operator * (const Matrix3& rhs) const;
-    
+
     void SetScale(const Vector3& scale);
     void SetScale(float scale);
-    
+
     Vector3 Scale() const;
     Matrix3 Transpose() const;
     Matrix3 Scaled(const Vector3& scale) const;

+ 12 - 12
Source/Urho3D/LuaScript/pkgs/Math/Matrix3x4.pkg

@@ -12,39 +12,39 @@ class Matrix3x4
     Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale);
     Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale);
     ~Matrix3x4();
-    
-    bool operator == (const Matrix3x4& rhs) const;
-    
+
+    bool operator ==(const Matrix3x4& rhs) const;
+
     Vector3 operator * (const Vector3& rhs) const;
     Vector3 operator * (const Vector4& rhs) const;
-    
+
     Matrix3x4 operator + (const Matrix3x4& rhs) const;
     Matrix3x4 operator - (const Matrix3x4& rhs) const;
-    
+
     Matrix3x4 operator * (float rhs) const;
     Matrix3x4 operator * (const Matrix3x4& rhs) const;
     Matrix4 operator * (const Matrix4& rhs) const;
-    
+
     void SetTranslation(const Vector3& translation);
     void SetRotation(const Matrix3& rotation);
     void SetScale(const Vector3& scale);
     void SetScale(float scale);
-    
+
     Matrix3 ToMatrix3() const;
     Matrix4 ToMatrix4() const;
     Matrix3 RotationMatrix() const;
     Vector3 Translation() const;
     Quaternion Rotation() const;
     Vector3 Scale() const;
-    
+
     bool Equals(const Matrix3x4& rhs) const;
-    
+
     void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const;
 
     Matrix3x4 Inverse() const;
-    
+
     String ToString() const;
-    
+
     float m00_ @ m00;
     float m01_ @ m01;
     float m02_ @ m02;
@@ -57,7 +57,7 @@ class Matrix3x4
     float m21_ @ m21;
     float m22_ @ m22;
     float m23_ @ m23;
-    
+
     static const Matrix3x4 ZERO;
     static const Matrix3x4 IDENTITY;
 };

+ 8 - 8
Source/Urho3D/LuaScript/pkgs/Math/Matrix4.pkg

@@ -11,11 +11,11 @@ class Matrix4
             float v30, float v31, float v32, float v33);
     ~Matrix4();
 
-    bool operator == (const Matrix4& rhs) const;
+    bool operator ==(const Matrix4& rhs) const;
 
     Vector3 operator * (const Vector3& rhs) const;
     Vector4 operator * (const Vector4& rhs) const;
-    
+
     Matrix4 operator + (const Matrix4& rhs) const;
     Matrix4 operator - (const Matrix4& rhs) const;
 
@@ -27,21 +27,21 @@ class Matrix4
     void SetRotation(const Matrix3& rotation);
     void SetScale(const Vector3& scale);
     void SetScale(float scale);
-    
+
     Matrix3 ToMatrix3() const;
     Matrix3 RotationMatrix() const;
     Vector3 Translation() const;
     Quaternion Rotation() const;
     Vector3 Scale() const;
     Matrix4 Transpose() const;
-    
+
     bool Equals(const Matrix4& rhs) const;
     void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const;
-    
+
     Matrix4 Inverse() const;
-    
+
     String ToString() const;
-    
+
     float m00_ @ m00;
     float m01_ @ m01;
     float m02_ @ m02;
@@ -58,7 +58,7 @@ class Matrix4
     float m31_ @ m31;
     float m32_ @ m32;
     float m33_ @ m33;
-    
+
     static const Matrix4 ZERO;
     static const Matrix4 IDENTITY;
 };

+ 9 - 9
Source/Urho3D/LuaScript/pkgs/Math/Quaternion.pkg

@@ -13,35 +13,35 @@ class Quaternion
     Quaternion(const Matrix3& matrix);
     ~Quaternion();
 
-    bool operator == (const Quaternion& rhs) const;
-    
+    bool operator ==(const Quaternion& rhs) const;
+
     Quaternion operator * (float rhs) const;
     Quaternion operator - () const;
-    bool operator == (const Quaternion& rhs) const;
-    
+    bool operator ==(const Quaternion& rhs) const;
+
     Quaternion operator * (float rhs) const;
     Quaternion operator - () const;
     Quaternion operator + (const Quaternion& rhs) const;
     Quaternion operator - (const Quaternion& rhs) const;
     Quaternion operator * (const Quaternion& rhs) const;
     Vector3 operator * (const Vector3& rhs) const;
-    
+
     void FromAngleAxis(float angle, const Vector3& axis);
     void FromEulerAngles(float x, float y, float z);
     void FromRotationTo(const Vector3& start, const Vector3& end);
     void FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis);
     void FromRotationMatrix(const Matrix3& matrix);
     bool FromLookRotation(const Vector3& direction, const Vector3& up);
-    
+
     void Normalize();
-    
+
     Quaternion Normalized() const;
     Quaternion Inverse() const;
     float LengthSquared() const;
     float DotProduct(const Quaternion& rhs) const;
     bool Equals(const Quaternion& rhs) const;
     bool IsNaN() const;
-    
+
     Quaternion Conjugate() const;
     Vector3 EulerAngles() const;
     float YawAngle() const;
@@ -56,6 +56,6 @@ class Quaternion
     float x_ @ x;
     float y_ @ y;
     float z_ @ z;
-    
+
     static const Quaternion IDENTITY;
 };

+ 9 - 9
Source/Urho3D/LuaScript/pkgs/Math/Ray.pkg

@@ -7,24 +7,24 @@ class Ray
     Ray(const Ray& ray);
     ~Ray();
 
-    bool operator == (const Ray& rhs) const;
-    
+    bool operator ==(const Ray& rhs) const;
+
     void Define(const Vector3& origin, const Vector3& direction);
-    
+
     Vector3 Project(const Vector3& point) const;
     float Distance(const Vector3& point) const;
     Vector3 ClosestPoint(const Ray& ray) const;
-    
+
     float HitDistance(const Plane& plane) const;
     float HitDistance(const BoundingBox& box) const;
-    
+
     float HitDistance(const Frustum& frustum, bool solidInside = true) const;
-    
+
     float HitDistance(const Sphere& sphere) const;
     float HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2) const;
-    
+
     Ray Transformed(const Matrix3x4& transform) const;
-    
+
     Vector3 origin_ @ origin;
     Vector3 direction_ @ direction;
-};
+};

+ 10 - 10
Source/Urho3D/LuaScript/pkgs/Math/Rect.pkg

@@ -9,8 +9,8 @@ class Rect
     Rect(const Vector4& vector);
     ~Rect();
 
-    bool operator == (const Rect& rhs) const;
-    
+    bool operator ==(const Rect& rhs) const;
+
     void Define(const Rect& rect);
     void Define(const Vector2& min, const Vector2& max);
     void Define(const Vector2& point);
@@ -24,15 +24,15 @@ class Rect
     bool Equals(const Rect& rhs) const;
     Intersection IsInside(const Vector2& point) const;
     Vector4 ToVector4() const;
-    
+
     String ToString() const;
-    
+
     Vector2 min_ @ min;
     Vector2 max_ @ max;
     static const Rect FULL;
     static const Rect POSITIVE;
     static const Rect ZERO;
-    
+
     tolua_readonly tolua_property__no_prefix Vector2 center;
     tolua_readonly tolua_property__no_prefix Vector2 size;
     tolua_readonly tolua_property__no_prefix Vector2 halfSize;
@@ -44,20 +44,20 @@ class IntRect
     IntRect(int left, int top, int right, int bottom);
     ~IntRect();
 
-    bool operator == (const IntRect& rhs) const;
-    
+    bool operator ==(const IntRect& rhs) const;
+
     IntVector2 Size() const;
     int Width() const;
     int Height() const;
     Intersection IsInside(const IntVector2& point) const;
-    
+
     int left_ @ left;
     int top_ @ top;
     int right_ @ right;
     int bottom_ @ bottom;
-    
+
     static const IntRect ZERO;
-    
+
     tolua_readonly tolua_property__no_prefix IntVector2 size;
     tolua_readonly tolua_property__no_prefix int width;
     tolua_readonly tolua_property__no_prefix int height;

+ 8 - 8
Source/Urho3D/LuaScript/pkgs/Math/Sphere.pkg

@@ -9,31 +9,31 @@ class Sphere
     Sphere(const Frustum& frustum);
     Sphere(const Polyhedron& poly);
     ~Sphere();
-    
-    bool operator == (const Sphere& rhs) const;
-    
+
+    bool operator ==(const Sphere& rhs) const;
+
     void Define(const Sphere& sphere);
     void Define(const Vector3& center, float radius);
     void Define(const BoundingBox& box);
     void Define(const Frustum& frustum);
     void Define(const Polyhedron& poly);
-    
+
     void Merge(const Vector3& point);
     void Merge(const BoundingBox& box);
     void Merge(const Frustum& frustum);
     void Merge(const Polyhedron& poly);
     void Merge(const Sphere& sphere);
-    
+
     void Clear();
-    
+
     Intersection IsInside(const Vector3& point) const;
     Intersection IsInside(const Sphere& sphere) const;
     Intersection IsInsideFast(const Sphere& sphere) const;
     Intersection IsInside(const BoundingBox& box) const;
     Intersection IsInsideFast(const BoundingBox& box) const;
-    
+
     float Distance(const Vector3& point) const;
-    
+
     Vector3 center_ @ center;
     float radius_ @ radius;
     bool defined_ @ defined;

+ 3 - 3
Source/Urho3D/LuaScript/pkgs/Math/StringHash.pkg

@@ -9,15 +9,15 @@ class StringHash
     ~StringHash();
 
     StringHash operator + (const StringHash& rhs) const;
-    bool operator == (const StringHash& rhs) const;
+    bool operator ==(const StringHash& rhs) const;
     bool operator < (const StringHash& rhs) const;
     operator bool () const;
     unsigned Value() const;
     String ToString() const;
     unsigned ToHash() const;
-    
+
     static unsigned Calculate(const char* str);
     static const StringHash ZERO;
-    
+
     tolua_readonly tolua_property__no_prefix unsigned value;
 };

+ 10 - 10
Source/Urho3D/LuaScript/pkgs/Math/Vector2.pkg

@@ -6,8 +6,8 @@ class Vector2
     Vector2(const Vector2& vector);
     Vector2(float x, float y);
     ~Vector2();
-    
-    bool operator == (const Vector2& rhs) const;
+
+    bool operator ==(const Vector2& rhs) const;
     Vector2 operator + (const Vector2& rhs) const;
     Vector2 operator - () const;
     Vector2 operator - (const Vector2& rhs) const;
@@ -26,14 +26,14 @@ class Vector2
     Vector2 Lerp(const Vector2& rhs, float t) const;
     bool Equals(const Vector2& rhs) const;
     bool IsNaN() const;
-    
+
     Vector2 Normalized() const;
-    
+
     String ToString() const;
-    
+
     float x_ @ x;
     float y_ @ y;
-    
+
     static const Vector2 ZERO;
     static const Vector2 LEFT;
     static const Vector2 RIGHT;
@@ -49,18 +49,18 @@ class IntVector2
     IntVector2(const IntVector2& rhs);
     ~IntVector2();
 
-    bool operator == (const IntVector2& rhs) const;
+    bool operator ==(const IntVector2& rhs) const;
     IntVector2 operator + (const IntVector2& rhs) const;
     IntVector2 operator - () const;
     IntVector2 operator - (const IntVector2& rhs) const;
     IntVector2 operator * (int rhs) const;
     IntVector2 operator / (int rhs) const;
     IntVector2 operator / (int rhs) const;
-    
+
     String ToString() const;
-    
+
     int x_ @ x;
     int y_ @ y;
-    
+
     static const IntVector2 ZERO;
 };

+ 5 - 5
Source/Urho3D/LuaScript/pkgs/Math/Vector3.pkg

@@ -9,8 +9,8 @@ class Vector3
     Vector3(float x, float y, float z);
     Vector3(float x, float y);
     ~Vector3();
-    
-    bool operator == (const Vector3& rhs) const;
+
+    bool operator ==(const Vector3& rhs) const;
     Vector3 operator + (const Vector3& rhs) const;
     Vector3 operator - () const;
     Vector3 operator - (const Vector3& rhs) const;
@@ -30,13 +30,13 @@ class Vector3
     bool IsNaN() const;
     float Angle(const Vector3& rhs) const;
     Vector3 Normalized() const;
-    
+
     String ToString() const;
-    
+
     float x_ @ x;
     float y_ @ y;
     float z_ @ z;
-    
+
     static const Vector3 ZERO;
     static const Vector3 LEFT;
     static const Vector3 RIGHT;

+ 5 - 5
Source/Urho3D/LuaScript/pkgs/Math/Vector4.pkg

@@ -8,7 +8,7 @@ class Vector4
     Vector4(float x, float y, float z, float w);
     ~Vector4();
 
-    bool operator == (const Vector4& rhs) const;
+    bool operator ==(const Vector4& rhs) const;
     Vector4 operator + (const Vector4& rhs) const;
     Vector4 operator - () const;
     Vector4 operator - (const Vector4& rhs) const;
@@ -17,7 +17,7 @@ class Vector4
     Vector4 operator / (float rhs) const;
     Vector4 operator / (const Vector4& rhs) const;
     Vector4 operator / (const Vector4& rhs) const;
-    
+
     float DotProduct(const Vector4& rhs) const;
     float AbsDotProduct(const Vector4& rhs) const;
     Vector4 Abs() const;
@@ -26,12 +26,12 @@ class Vector4
     bool IsNaN() const;
 
     String ToString() const;
-    
+
     float x_ @ x;
     float y_ @ y;
     float z_ @ z;
     float w_ @ w;
-    
+
     static const Vector4 ZERO;
     static const Vector4 ONE;
-};
+};