Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce overengeneering around datadesc, put stubs in place so that the kernel compile...
[simgrid.git] / include / gras.h
1 /* $Id$ */
2
3 /* gras.h - Public interface to the GRAS                                    */
4
5 /* Authors: Martin Quinson                                                  */
6 /* Copyright (C) 2003 the OURAGAN project.                                  */
7
8 /* This program is free software; you can redistribute it and/or modify it
9    under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #ifndef GRAS_H
12 #define GRAS_H
13
14 /* Oli's macro */
15 #ifndef GS_FAILURE_CONTEXT
16 #  define GS_FAILURE_CONTEXT
17 #endif /* GS_FAILURE_CONTEXT */
18
19 #define GS_FAILURE(str) \
20      (fprintf(stderr, "FAILURE: %s(%s:%d)" GS_FAILURE_CONTEXT "%s\n", __func__, __FILE__, __LINE__, (str)), \
21       abort())
22
23 #define aligned(v, a) (((v) + (a - 1)) & ~(a - 1))
24 #define max(a, b) (((a) > (b))?(a):(b))
25 #define min(a, b) (((a) < (b))?(a):(b))
26
27 #define TRUE  1
28 #define FALSE 0
29
30 /* end of Oli's cruft */
31
32 #include <gras/error.h>
33 #include <gras/log.h>
34
35 #include <gras/module.h>
36
37 #include <gras/dynar.h>
38 #include <gras/dict.h>
39
40 #include <gras/config.h>
41
42 #include <gras/core.h>
43
44 #include <gras/transport.h>
45 #include <gras/datadesc_simple.h>
46 #include <gras/socket.h>
47 #include <gras/messages.h>
48
49 #include <gras/data_description.h>
50 #include <gras/dd_type_bag.h>
51
52 #include <gras/modules/base.h>
53 #include <gras/modules/bandwidth.h>
54
55 #endif /* GRAS_H */