Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert S4U to my current coding convention
[simgrid.git] / src / mc / mc_forward.h
1 /* Copyright (c) 2007-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 /** \file mc_forward.h
8  *
9  *  Define type names for pointers of MC objects for the C code
10  */
11
12 #ifndef SIMGRID_MC_FORWARD_H
13 #define SIMGRID_MC_FORWARD_H
14
15 #ifdef __cplusplus
16
17 // If we're in C++, we give the real definition:
18 #include "mc_forward.hpp"
19 typedef simgrid::mc::Snapshot *mc_snapshot_t;
20 typedef simgrid::mc::Type *mc_type_t;
21
22 #else
23
24 // Otherwise we use dummy opaque structs:
25 typedef struct _mc_snapshot_t *mc_snapshot_t;
26 typedef struct _s_mc_type_t *mc_type_t;
27
28 #endif
29
30 #endif