Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Data description]
[simgrid.git] / include / cond.h
1 /* $Id$                     */
2
3 /* gras/cond.h - public interface to conditional execution                  */
4 /*                (specific parts for SG or RL)                             */
5  
6 /* Authors: Martin Quinson                                                  */
7 /* Copyright (C) 2003,2004 da GRAS posse.                                   */
8
9 /* This program is free software; you can redistribute it and/or modify it
10    under the terms of the license (GNU LGPL) which comes with this package. */
11
12 #ifndef GRAS_COND_H
13 #define GRAS_COND_H
14
15 #include <stddef.h>    /* offsetof() */
16 #include <sys/types.h>  /* size_t */
17 #include <stdarg.h>
18
19
20 /*! C++ users need love */
21 #ifndef BEGIN_DECL
22 # ifdef __cplusplus
23 #  define BEGIN_DECL extern "C" {
24 # else
25 #  define BEGIN_DECL 
26 # endif
27 #endif
28
29 /*! C++ users need love */
30 #ifndef END_DECL
31 # ifdef __cplusplus
32 #  define END_DECL }
33 # else
34 #  define END_DECL 
35 # endif
36 #endif
37 /* End of cruft for C++ */
38
39 BEGIN_DECL
40
41 /**
42  * gras_if_RL:
43  * 
44  * Returns true only if the program runs on real life
45  */
46 int gras_if_RL(void);
47
48 /**
49  * gras_if_SG:
50  * 
51  * Returns true only if the program runs within the simulator
52  */
53 int gras_if_SG(void);
54
55 END_DECL
56
57 #endif /* GRAS_COND_H */
58