mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-16 06:22:27 +03:00
Use mathlib.h in basetypes.h (#175)
This commit is contained in:
parent
4545a040c0
commit
0f1f4c002f
@ -15,6 +15,7 @@
|
|||||||
#include "protected_things.h"
|
#include "protected_things.h"
|
||||||
#include "commonmacros.h"
|
#include "commonmacros.h"
|
||||||
|
|
||||||
|
#include "mathlib.h"
|
||||||
|
|
||||||
// For backward compatibilty only...
|
// For backward compatibilty only...
|
||||||
#include "tier0/platform.h"
|
#include "tier0/platform.h"
|
||||||
@ -44,19 +45,6 @@
|
|||||||
#define PAD_NUMBER(number, boundary) \
|
#define PAD_NUMBER(number, boundary) \
|
||||||
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
|
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
|
||||||
|
|
||||||
#ifndef MATHLIB_H
|
|
||||||
// In case this ever changes
|
|
||||||
#define M_PI 3.14159265358979323846
|
|
||||||
|
|
||||||
#ifndef min
|
|
||||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef max
|
|
||||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
||||||
#endif
|
|
||||||
#endif // MATHLIB_H
|
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "protected_things.h"
|
#include "protected_things.h"
|
||||||
#include "commonmacros.h"
|
#include "commonmacros.h"
|
||||||
|
|
||||||
|
#include "mathlib.h"
|
||||||
|
|
||||||
// For backward compatibilty only...
|
// For backward compatibilty only...
|
||||||
#include "tier0/platform.h"
|
#include "tier0/platform.h"
|
||||||
@ -44,19 +45,6 @@
|
|||||||
#define PAD_NUMBER(number, boundary) \
|
#define PAD_NUMBER(number, boundary) \
|
||||||
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
|
( ((number) + ((boundary)-1)) / (boundary) ) * (boundary)
|
||||||
|
|
||||||
#ifndef MATHLIB_H
|
|
||||||
// In case this ever changes
|
|
||||||
#define M_PI 3.14159265358979323846
|
|
||||||
|
|
||||||
#ifndef min
|
|
||||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef max
|
|
||||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
||||||
#endif
|
|
||||||
#endif // MATHLIB_H
|
|
||||||
|
|
||||||
#ifndef FALSE
|
#ifndef FALSE
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
#define TRUE (!FALSE)
|
#define TRUE (!FALSE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user