Move all header content of math-help.h inside its header guards

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6111 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-10-04 12:34:42 +00:00
parent a74c27019d
commit 77d7490ed3
1 changed files with 4 additions and 4 deletions

View File

@ -17,17 +17,17 @@
along with Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*! \file math-help.h
/*! \file
* \brief Routines to provide simple math helper functions
*/
#ifndef __INCLUDED_LIB_FRAMEWORK_MATH_HELP_H__
#define __INCLUDED_LIB_FRAMEWORK_MATH_HELP_H__
// Also PERCENT(int,int); // returns a int value 0->100 of the percentage of the first param over the second
#include "wzglobal.h"
#ifndef __INCLUDED_LIB_FRAMEWORK_MATH_HELP_H__
#define __INCLUDED_LIB_FRAMEWORK_MATH_HELP_H__
#define PERCENT(a,b) (((a)*100)/(b))
#define PERNUM(range,a,b) (((a)*range)/(b))