[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2840 - branches/pingus_sdl/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r2840 - branches/pingus_sdl/src |
Date: |
Sun, 12 Aug 2007 00:55:13 +0200 |
Author: grumbel
Date: 2007-08-12 00:55:11 +0200 (Sun, 12 Aug 2007)
New Revision: 2840
Modified:
branches/pingus_sdl/src/math.hpp
Log:
- little just-in-case assert
Modified: branches/pingus_sdl/src/math.hpp
===================================================================
--- branches/pingus_sdl/src/math.hpp 2007-08-11 22:15:49 UTC (rev 2839)
+++ branches/pingus_sdl/src/math.hpp 2007-08-11 22:55:11 UTC (rev 2840)
@@ -20,10 +20,10 @@
#ifndef HEADER_PINGUS_MATH_HXX
#define HEADER_PINGUS_MATH_HXX
+#include <assert.h>
#include <stdlib.h>
#include "pingus.hpp"
-
/** A collection of small math helper functions, some of them might be
equal in functionality to standard STL functions, but provided
here for portability and broken STL implementations
@@ -63,6 +63,7 @@
template<class T>
T mid (const T& a, const T& b, const T& c)
{
+ assert(a <= c);
return max((a), min((b), (c)));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2840 - branches/pingus_sdl/src,
grumbel at BerliOS <=