Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 891 bytes
Line 
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*/
7
8#ifndef _STDINCL_H
9#define _STDINCL_H
10
11typedef unsigned char byte;
12
13// this includes the information from configure/makefiles
14#if HAVE_CONFIG_H
15#include <config.h> 
16#endif
17
18#ifdef __WIN32__
19#include <windows.h>
20#endif
21
22#include <stddef.h>
23#include <stdlib.h>
24#include <string.h>
25
26#include "glincl.h"
27
28#include "error.h"
29#include "debug.h"
30
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
42#endif /* _STDINCL_H */
Note: See TracBrowser for help on using the repository browser.