Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
42ca8dbd5b20f546e2121b1538b280d6d9a1f011
[simgrid.git] / include / gras / 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 "xbt/misc.h" /* BEGIN_DECL */
16
17 BEGIN_DECL
18
19 /**
20  * gras_if_RL:
21  * 
22  * Returns true only if the program runs on real life
23  */
24 int gras_if_RL(void);
25
26 /**
27  * gras_if_SG:
28  * 
29  * Returns true only if the program runs within the simulator
30  */
31 int gras_if_SG(void);
32
33 END_DECL
34
35 #endif /* GRAS_COND_H */
36