Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use CRTP to factor refcounting across activity types
[simgrid.git] / include / simgrid / config.h.in
1 /* simgrid/config.h - Results of the configure made visible to user code.   */
2
3 /* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved.          */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef SIMGRID_PUBLIC_CONFIG_H
9 #define SIMGRID_PUBLIC_CONFIG_H
10 #include <xbt/base.h>
11
12 /** Define the version numbers of the used header files.
13   See sg_version_get() to retrieve the version of the dynamic library. */
14 #define SIMGRID_VERSION_MAJOR @SIMGRID_VERSION_MAJOR@
15 #define SIMGRID_VERSION_MINOR @SIMGRID_VERSION_MINOR@
16 #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
17 #define SIMGRID_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
18
19 SG_BEGIN_DECL()
20 /** Retrieves the version numbers of the used dynamic library (so, DLL or dynlib), while
21     SIMGRID_VERSION_MAJOR and friends give the version numbers of the used header files */
22 XBT_PUBLIC void sg_version_get(int* major, int* minor, int* patch);
23
24 /** Display the version information and some additional blurb. */
25 XBT_PUBLIC void sg_version();
26 SG_END_DECL()
27
28
29 /* Version as a single integer. v3.4 is 30400, v3.16.2 is 31602, v42 will be 420000, and so on. */
30 #define SIMGRID_VERSION (100UL * (100UL * (SIMGRID_VERSION_MAJOR) + (SIMGRID_VERSION_MINOR)) + (SIMGRID_VERSION_PATCH))
31
32 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
33
34 /* Was Jedule compiled in?  */
35 #cmakedefine01 SIMGRID_HAVE_JEDULE
36 /* Was the Lua support compiled in? */
37 #cmakedefine01 SIMGRID_HAVE_LUA
38 /* Were mallocators (object pools) compiled in? */
39 #cmakedefine01 SIMGRID_HAVE_MALLOCATOR
40 /* Was the model-checking compiled in? */
41 #cmakedefine01 SIMGRID_HAVE_MC
42 /* Was the ns-3 support compiled in? */
43 #cmakedefine01 SIMGRID_HAVE_NS3
44
45 #endif /* SIMGRID_PUBLIC_CONFIG_H */