Geom Software - C++ Programming and Geometry Libraries
Fade3D Documentation pages v0.99
/home/geom/repo/dev/geomDev/dt3/dt3Library/definitions.h
1 #pragma once
2 #include <assert.h>
3 
4 
5 // DLL IMPORT/EXPORT MACRO
6 #if defined (_WIN32)
7  #if defined(FADE3D_EXPORT)
8  #define CLASS_DECLSPEC __declspec(dllexport)
9  #else
10  #define CLASS_DECLSPEC __declspec(dllimport)
11  #endif
12 #else
13  #define CLASS_DECLSPEC
14 #endif
15 
16 const int INVALID_IDX(-999);
17 
20 inline bool range03(int i)
21 {
22  if(i>-1 && i<4) return true;
23  else return false;
24 }
25 
28 inline bool range02(int i)
29 {
30  if(i>-1 && i<3) return true;
31  else return false;
32 }