Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/defs/stdincl.h @ 3808

Last change on this file since 3808 was 3800, checked in by patrick, 20 years ago

orxonox/trunk: defined macro for likely function, PNode now uses this branche prediction mechanism

File size: 891 bytes
RevLine 
[3193]1/*!
2  \file stdincl.h
3  \brief This file includes default headers that nearly every Class needs.
4 
5  no Class is defined here, but many headers to classes, and more general Headers like the openGL-header.
6*/
[1855]7
[3224]8#ifndef _STDINCL_H
9#define _STDINCL_H
[1855]10
[3365]11typedef unsigned char byte;
12
[3204]13// this includes the information from configure/makefiles
14#if HAVE_CONFIG_H
15#include <config.h> 
16#endif
17
[2190]18#ifdef __WIN32__
19#include <windows.h>
[1855]20#endif
[2995]21
[3607]22#include <stddef.h>
[3495]23#include <stdlib.h>
24#include <string.h>
25
[3433]26#include "glincl.h"
[2995]27
[3433]28#include "error.h"
29#include "debug.h"
30
[3800]31
32/* performance tweaking stuff */
33#ifdef __unix__
34 #include <glib-2.0/glib/gmacros.h>
35 #define __LIKELY_IF(condition)  if( G_LIKELY(condition))
36 #define __UNLIKELY_IF(condition) if( G_UNLIKELY(condition))
37#else
38 #define __LIKELY_IF(condition)  if( condition)
39 #define __UNLIKELY_IF(condition) if( condition)
40#endif
41
[3224]42#endif /* _STDINCL_H */
Note: See TracBrowser for help on using the repository browser.