Made lua run under MSWin with Dev-Cpp 4.9.9.2
[sdlbotor.git] / globalfunc.h
blobc624446cdb40a9c30992e17025048704f2e552e9
1 #ifndef GLOBALFUNC_H
2 #define GLOBALFUNC_H
4 namespace botor
6 template<typename T> inline int sign( T a )
8 return (a == 0) ? 0 : ( (a<0) ? -1 : 1 );
11 double dst( float x1, float y1, float x2, float y2 );
13 bool isBitSet( unsigned int mask, unsigned int bit );
15 template<unsigned int N>
16 struct Bitmask
18 static const unsigned int v = 1 << N;
22 #endif