[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3804 - in trunk/pingus: . src/math
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3804 - in trunk/pingus: . src/math |
Date: |
Sun, 13 Jul 2008 12:12:30 +0200 |
Author: grumbel
Date: 2008-07-13 12:12:30 +0200 (Sun, 13 Jul 2008)
New Revision: 3804
Added:
trunk/pingus/src/math/size.cpp
Modified:
trunk/pingus/SConstruct
Log:
Added some operator<< and moved some code from the .cpp to the .hpp to allow
the compiler to do inlining
Modified: trunk/pingus/SConstruct
===================================================================
--- trunk/pingus/SConstruct 2008-07-13 09:45:01 UTC (rev 3803)
+++ trunk/pingus/SConstruct 2008-07-13 10:12:30 UTC (rev 3804)
@@ -193,6 +193,7 @@
'src/string_util.cpp',
'src/math/origin.cpp',
'src/math/rect.cpp',
+'src/math/size.cpp',
'src/math.cpp',
'src/system.cpp',
'src/tinygettext/iconv.cpp',
Added: trunk/pingus/src/math/size.cpp
===================================================================
--- trunk/pingus/src/math/size.cpp 2008-07-13 09:45:01 UTC (rev 3803)
+++ trunk/pingus/src/math/size.cpp 2008-07-13 10:12:30 UTC (rev 3804)
@@ -0,0 +1,33 @@
+/*
+** ClanLib SDK
+** Copyright (c) 1997-2005 The ClanLib Team
+**
+** This software is provided 'as-is', without any express or implied
+** warranty. In no event will the authors be held liable for any damages
+** arising from the use of this software.
+**
+** Permission is granted to anyone to use this software for any purpose,
+** including commercial applications, and to alter it and redistribute it
+** freely, subject to the following restrictions:
+**
+** 1. The origin of this software must not be misrepresented; you must not
+** claim that you wrote the original software. If you use this software
+** in a product, an acknowledgment in the product documentation would be
+** appreciated but is not required.
+** 2. Altered source versions must be plainly marked as such, and must not be
+** misrepresented as being the original software.
+** 3. This notice may not be removed or altered from any source distribution.
+**
+** Note: Some of the libraries ClanLib may link to may have additional
+** requirements or restrictions.
+**/
+
+#include <iostream>
+#include "size.hpp"
+
+std::ostream& operator<<(std::ostream& os, const Size& size)
+{
+ return os << "size[" << size.width << ", " << size.height << "]";
+}
+
+/* EOF */
Property changes on: trunk/pingus/src/math/size.cpp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3804 - in trunk/pingus: . src/math,
grumbel at BerliOS <=