- Main Page
- Classes
- Files

- File List
- File Members

# flConfigValidate.h

Go to the documentation of this file.

    00001 // This validates the current configuration
    00002
    00003 #if FL_INCLUDE_ALL_C != 0
    00004      #undef FL_INCLUDE_ALL_H
    00005      #define FL_INCLUDE_ALL_H 1
    00006 #endif
    00007
    00008 #if FL_PREFIX_BOTH != 0
    00009      #undef FL_PREFIX
    00010      #define FL_PREFIX 0
    00011 #endif
    00012
    00013 #if FL_VSHMODE != 0
    00014      #undef FL_CALLBACKS
    00015      #undef FL_MEMORY_VMEM
    00016      #undef FL_MEMORY_SCRATCHPAD
    00017      #undef FL_MATH_VFPU
    00018      #define FL_CALLBACKS 0
    00019      #define FL_MEMORY_VMEM 0
    00020      #define FL_MEMORY_SCRATCHPAD 0
    00021      #define FL_MATH_VFPU 0
    00022 #endif
    00023
    00024 #if FL_KERNELMODE == 0
    00025      #undef FL_NOTIFY_VOLUME
    00026      #define FL_NOTIFY_VOLUME 0
    00027 #endif
    00028
    00029 #if FL_CALLBACKS == 0
    00030      #undef FL_CALLBACKS_EXIT
    00031      #undef FL_CALLBACKS_POWER
    00032      #define FL_CALLBACKS_EXIT 0
    00033      #define FL_CALLBACKS_POWER 0
    00034 #endif
    00035
    00036 #if FL_DEBUG == 0
    00037      #undef FL_DEBUG_TIMESTAMP
    00038      #undef FL_DEBUG_CALLEDFROM
    00039      #undef FL_DEBUG_LOGGING
    00040      #undef FL_DEBUG_ERROR
    00041      #undef FL_DEBUG_WARNING
    00042      #undef FL_DEBUG_DEVWARNING
    00043      #undef FL_DEBUG_CRITICALERROR_SHOW
    00044      #undef FL_DEBUG_CRITICALERROR_SCREENSHOT
    00045      #define FL_DEBUG_TIMESTAMP 0
    00046      #define FL_DEBUG_CALLEDFROM 0
    00047      #define FL_DEBUG_LOGGING 0
    00048      #define FL_DEBUG_ERROR 0
    00049      #define FL_DEBUG_WARNING 0
    00050      #define FL_DEBUG_DEVWARNING 0
    00051      #define FL_DEBUG_CRITICALERROR_SHOW 0
    00052      #define FL_DEBUG_CRITICALERROR_SCREENSHOT 0
    00053 #endif
    00054
    00055 #if FL_DEBUG_LOGGING == 0
    00056      #undef FL_DEBUG_LOGCLEAR
    00057      #undef FL_DEBUG_STATUS
    00058      #define FL_DEBUG_LOGCLEAR 0
    00059      #define FL_DEBUG_STATUS 0
    00060 #endif
    00061
    00062 #if FL_DEBUG_STATUS == 0
    00063      #undef FL_DEBUG_STATUS_NOTIFY
    00064      #define FL_DEBUG_STATUS_NOTIFY 0
    00065 #endif
    00066
    00067 #if FL_DEBUG_ERROR == 0
    00068      #undef FL_DEBUG_ERROR_SHOW
    00069      #undef FL_DEBUG_ERROR_NOTIFY
    00070      #undef FL_DEBUG_ERROR_SCREENSHOT
    00071      #define FL_DEBUG_ERROR_SHOW 0
    00072      #define FL_DEBUG_ERROR_NOTIFY 0
    00073      #define FL_DEBUG_ERROR_SCREENSHOT 0
    00074 #endif
    00075
    00076 #if FL_DEBUG_WARNING == 0
    00077      #undef FL_DEBUG_WARNING_SHOW
    00078      #undef FL_DEBUG_WARNING_NOTIFY
    00079      #undef FL_DEBUG_WARNING_SCREENSHOT
    00080      #define FL_DEBUG_WARNING_SHOW 0
    00081      #define FL_DEBUG_WARNING_NOTIFY 0
    00082      #define FL_DEBUG_WARNING_SCREENSHOT 0
    00083 #endif
    00084
    00085 #if FL_DEBUG_DEVWARNING == 0
    00086      #undef FL_DEBUG_DEVWARNING_SHOW
    00087      #undef FL_DEBUG_DEVWARNING_NOTIFY
    00088      #undef FL_DEBUG_DEVWARNING_SCREENSHOT
    00089      #define FL_DEBUG_DEVWARNING_SHOW 0
    00090      #define FL_DEBUG_DEVWARNING_NOTIFY 0
    00091      #define FL_DEBUG_DEVWARNING_SCREENSHOT 0
    00092 #endif
    00093
    00094 #if FL_TIMER == 0
    00095      #undef FL_NOTIFY
    00096      #define FL_NOTIFY 0
    00097 #endif
    00098
    00099 #if FL_MEMORY == 0
    00100      #undef FL_MEMORY_SCRATCHPAD
    00101      #undef FL_MEMORY_VMEM
    00102      #undef FL_MEMORY_POOL
    00103      #undef FL_MEMORY_PAGE
    00104      #undef FL_MEMORY_LOGGING
    00105      #undef FL_MEMORY_ERRORBYTES
    00106      #define FL_MEMORY_VMEM 0
    00107      #define FL_MEMORY_POOL 0
    00108      #define FL_MEMORY_PAGE 0
    00109      #define FL_MEMORY_LOGGING 0
    00110      #define FL_MEMORY_ERRORBYTES 0
    00111      #define FL_MEMORY_SCRATCHPAD 0
    00112 #endif
    00113
    00114 #if ((FL_MEMORY_ALIGNMENT_DEFAULT < 16) || (FL_MEMORY_ALIGNMENT_DEFAULT & 15))
    00115      #undef FL_MEMORY_ALIGNMENT_DEFAULT
    00116      #define FL_MEMORY_ALIGNMENT_DEFAULT 16
    00117 #endif
    00118
    00119 #if FL_MEMORY_VMEM == 0
    00120      #undef FL_MEMORY_VMEM_OVERFLOW
    00121      #undef FL_MEMORY_VMEM_STRIDE_FILL
    00122      #undef FL_MEMORY_VMEM_CACHE
    00123      #define FL_MEMORY_VMEM_OVERFLOW 0
    00124      #define FL_MEMORY_VMEM_STRIDE_FILL 0
    00125      #define FL_MEMORY_VMEM_CACHE 0
    00126 #endif
    00127
    00128 #if FL_MATH == 0
    00129      #undef FL_MATH_VFPU
    00130      #undef FL_MATH_RANDOMSEED
    00131      #undef FL_MATH_TRIGCACHE
    00132      #define FL_MATH_VFPU 0
    00133      #define FL_MATH_RANDOMSEED 0
    00134      #define FL_MATH_TRIGCACHE 0
    00135 #endif
    00136
    00137 #if FL_MATH_TRIGCACHE < 0
    00138      #undef FL_MATH_TRIGCACHE
    00139      #define FL_MATH_TRIGCACHE 0
    00140 #endif
    00141
    00142 #if (FL_MATH_VFPU == 0) && (FL_MATH_RANDTYPE == FL_MATH_RAND_VFPU)
    00143      #undef FL_MATH_RANDTYPE
    00144      #define FL_MATH_RANDTYPE FL_MATH_RAND_STDIO
    00145 #endif
    00146
    00147 #if FL_MATH_RANDTYPE != FL_MATH_RAND_STDIO
    00148      #undef FL_MATH_RANDOMSEED
    00149      #define FL_MATH_RANDOMSEED 0
    00150 #endif
    00151
    00152 #if FL_GRAPHICS == 0
    00153      #undef FL_GRAPHICS_VSYNC_DEFAULT
    00154      #undef FL_GRAPHICS_VSYNC_AUTO
    00155      #undef FL_GRAPHICS_DISPLAYLIST_STATIC
    00156      #undef FL_GRAPHICS_LINES_ANTIALIAS_DEFAULT
    00157      #undef FL_GRAPHICS_FPS_SHOW_DEFAULT
    00158      #undef FL_GRAPHICS_FPS_DAMP
    00159      #undef FL_GRAPHICS_2D
    00160      #undef FL_GRAPHICS_3D
    00161      #undef FL_GRAPHICS_EFFECTS_FULLSCREEN
    00162      #undef FL_DEBUG_ERROR_SCREENSHOT
    00163      #undef FL_DEBUG_WARNING_SCREENSHOT
    00164      #undef FL_DEBUG_DEVWARNING_SCREENSHOT
    00165      #undef FL_DEBUG_CRITICALERROR_SCREENSHOT
    00166      #undef FL_CAMERA
    00167      #undef FL_TEXTURE_AUTOSWIZZLE
    00168      #undef FL_MODEL
    00169      #define FL_GRAPHICS_VSYNC_DEFAULT 0
    00170      #define FL_GRAPHICS_VSYNC_AUTO 0
    00171      #define FL_GRAPHICS_DISPLAYLIST_STATIC 0
    00172      #define FL_GRAPHICS_LINES_ANTIALIAS_DEFAULT 0
    00173      #define FL_GRAPHICS_FPS_SHOW_DEFAULT 0
    00174      #define FL_GRAPHICS_FPS_DAMP 0
    00175      #define FL_GRAPHICS_2D 0
    00176      #define FL_GRAPHICS_3D 0
    00177      #define FL_GRAPHICS_EFFECTS_FULLSCREEN 0
    00178      #define FL_DEBUG_ERROR_SCREENSHOT 0
    00179      #define FL_DEBUG_WARNING_SCREENSHOT 0
    00180      #define FL_DEBUG_DEVWARNING_SCREENSHOT 0
    00181      #define FL_DEBUG_CRITICALERROR_SCREENSHOT 0
    00182      #define FL_CAMERA 0
    00183      #define FL_TEXTURE_AUTOSWIZZLE 0
    00184      #define FL_MODEL 0
    00185 #endif
    00186
    00187 #if ((FL_GRAPHICS_DISP_BUFFER_FORMAT < 0) || (FL_GRAPHICS_DISP_BUFFER_FORMAT > GU_PSM_8888))
    00188      #undef FL_GRAPHICS_DISP_BUFFER_FORMAT
    00189      #define FL_GRAPHICS_DISP_BUFFER_FORMAT GU_PSM_8888
    00190 #endif
    00191
    00192 #if ((FL_GRAPHICS_DRAW_BUFFER_FORMAT < 0) || (FL_GRAPHICS_DRAW_BUFFER_FORMAT > GU_PSM_8888))
    00193      #undef FL_GRAPHICS_DRAW_BUFFER_FORMAT
    00194      #define FL_GRAPHICS_DRAW_BUFFER_FORMAT GU_PSM_8888
    00195 #endif
    00196
    00197 #if FL_GRAPHICS_2D == 0
    00198      #undef FL_GRAPHICS_2D_USEDMA
    00199      #undef FL_NOTIFY
    00200      #define FL_GRAPHICS_2D_USEDMA 0
    00201      #define FL_NOTIFY 0
    00202 #endif
    00203
    00204 #if FL_GRAPHICS_2D_ELLIPSE_MINLINES < 3
    00205      #undef FL_GRAPHICS_2D_ELLIPSE_MINLINES
    00206      #define FL_GRAPHICS_2D_ELLIPSE_MINLINES 3
    00207 #endif
    00208
    00209 #if FL_TEXTURE == 0
    00210      #undef FL_TEXTURE_UNCACHED
    00211      #undef FL_TEXTURE_AUTOMIPMAP
    00212      #undef FL_TEXTURE_AUTOSWIZZLE
    00213      #undef FL_TEXTURE_ERRORTEX
    00214      #undef FL_TEXTURE_PRESERVENONALPHA
    00215      #undef FL_TEXTURE_PCX
    00216      #undef FL_TEXTURE_TGA
    00217      #undef FL_TEXTURE_BMP
    00218      #undef FL_TEXTURE_WAL
    00219      #undef FL_TEXTURE_PNG
    00220      #undef FL_TEXTURE_RAW
    00221      #undef FL_TEXTURE_MANIPULATION
    00222      #undef FL_SPRITE
    00223      #undef FL_DEBUG_ERROR_SCREENSHOT
    00224      #undef FL_DEBUG_WARNING_SCREENSHOT
    00225      #undef FL_DEBUG_DEVWARNING_SCREENSHOT
    00226      #undef FL_DEBUG_CRITICALERROR_SCREENSHOT
    00227      #undef FL_MODEL
    00228      #define FL_TEXTURE_UNCACHED 0
    00229      #define FL_TEXTURE_AUTOMIPMAP 0
    00230      #define FL_TEXTURE_AUTOSWIZZLE 0
    00231      #define FL_TEXTURE_ERRORTEX 0
    00232      #define FL_TEXTURE_PRESERVENONALPHA 0
    00233      #define FL_TEXTURE_PCX 0
    00234      #define FL_TEXTURE_TGA 0
    00235      #define FL_TEXTURE_BMP 0
    00236      #define FL_TEXTURE_WAL 0
    00237      #define FL_TEXTURE_PNG 0
    00238      #define FL_TEXTURE_RAW 0
    00239      #define FL_TEXTURE_MANIPULATION 0
    00240      #define FL_SPRITE 0
    00241      #define FL_DEBUG_ERROR_SCREENSHOT 0
    00242      #define FL_DEBUG_WARNING_SCREENSHOT 0
    00243      #define FL_DEBUG_DEVWARNING_SCREENSHOT 0
    00244      #define FL_DEBUG_CRITICALERROR_SCREENSHOT 0
    00245      #define FL_MODEL 0
    00246 #endif
    00247
    00248 #if FL_TEXTURE_AUTOMIPMAP < 0
    00249      #undef FL_TEXTURE_AUTOMIPMAP
    00250      #define FL_TEXTURE_AUTOMIPMAP 0
    00251 #else
    00252 #if FL_TEXTURE_AUTOMIPMAP > 7
    00253      #undef FL_TEXTURE_AUTOMIPMAP
    00254      #define FL_TEXTURE_AUTOMIPMAP 7
    00255 #endif
    00256 #endif
    00257
    00258 #if FL_TEXTURE_AUTOMIPMAP == 0
    00259      #undef FL_TEXTURE_AUTOMIPMAP_PALETTED
    00260      #define FL_TEXTURE_AUTOMIPMAP_PALETTED 0
    00261 #endif
    00262
    00263 #if FL_TEXTURE_ERRORTEX == 0
    00264      #undef FL_TEXTURE_ERRORTEX_COMPILE
    00265      #define FL_TEXTURE_ERRORTEX_COMPILE 0
    00266 #endif
    00267
    00268 #if FL_MODEL == 0
    00269      #undef FL_MODEL_OBJ
    00270      #undef FL_MODEL_MD2
    00271      #define FL_MODEL_OBJ 0
    00272      #define FL_MODEL_MD2 0
    00273 #endif
    00274
    00275 #if FL_FONT == 0
    00276      #undef FL_NOTIFY_TRAYSIZE
    00277      #define FL_NOTIFY_TRAYSIZE 0
    00278 #endif
    00279
    00280 #if FL_NOTIFY == 0
    00281      #undef FL_NOTIFY_VOLUME
    00282      #undef FL_NOTIFY_BATTERY
    00283      #undef FL_NOTIFY_TIME
    00284      #undef FL_NOTIFY_TRAYSIZE
    00285      #define FL_NOTIFY_VOLUME 0
    00286      #define FL_NOTIFY_BATTERY 0
    00287      #define FL_NOTIFY_TIME 0
    00288      #define FL_NOTIFY_TRAYSIZE 0
    00289 #endif
    00290
    00291 #if FL_NOTIFY_TRAYSIZE < 0
    00292      #undef FL_NOTIFY_TRAYSIZE
    00293      #define FL_NOTIFY_TRAYSIZE 0
    00294 #endif
    00295
    00296 #if FL_NOTIFY_TRAYSIZE == 0
    00297      #undef FL_DEBUG_STATUS_NOTIFY
    00298      #undef FL_DEBUG_ERROR_NOTIFY
    00299      #undef FL_DEBUG_WARNING_NOTIFY
    00300      #undef FL_DEBUG_DEVWARNING_NOTIFY
    00301      #define FL_DEBUG_STATUS_NOTIFY 0
    00302      #define FL_DEBUG_ERROR_NOTIFY 0
    00303      #define FL_DEBUG_WARNING_NOTIFY 0
    00304      #define FL_DEBUG_DEVWARNING_NOTIFY 0
    00305 #endif
    00306
    00307 /*#if FL_GRAPHICS_SIMPLE == 0
    00308      #undef FL_GRAPHICS_SIMPLE_CLIPPING
    00309      #undef FL_GRAPHICS_SIMPLE_IMAGESTACK
    00310      #undef FL_GRAPHICS_SIMPLE_SPRITE
    00311      #undef FL_GRAPHICS_SIMPLE_FONT
    00312      #define FL_GRAPHICS_SIMPLE_CLIPPING 0
    00313      #define FL_GRAPHICS_SIMPLE_IMAGESTACK 0
    00314      #define FL_GRAPHICS_SIMPLE_SPRITE 0
    00315      #define FL_GRAPHICS_SIMPLE_FONT 0
    00316 #endif*/