Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace memset(..., 0, ...) with zero-initialization.
[simgrid.git] / include / simgrid / version.h.in
1 /* src/simgrid/version.h - internal versioning info                        */
2
3 /* Copyright (c) 2009-2023. 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_VERSION_H
9 #define SIMGRID_VERSION_H
10
11 #include "xbt/base.h"
12
13 #define SIMGRID_GIT_VERSION   "@GIT_VERSION@"
14
15 /** Define the version numbers of the used header files.
16   See sg_version_get() to retrieve the version of the dynamic library. */
17 #define SIMGRID_VERSION_MAJOR @SIMGRID_VERSION_MAJOR@
18 #define SIMGRID_VERSION_MINOR @SIMGRID_VERSION_MINOR@
19 #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
20 #define SIMGRID_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
21
22 SG_BEGIN_DECL
23 /** Retrieves the version numbers of the used dynamic library (so, DLL or dynlib), while
24     SIMGRID_VERSION_MAJOR and friends give the version numbers of the used header files */
25 XBT_PUBLIC void sg_version_get(int* major, int* minor, int* patch);
26
27 /** Display the version information and some additional blurb. */
28 XBT_PUBLIC void sg_version();
29 SG_END_DECL
30
31
32 /* Version as a single integer. v3.4 is 30400, v3.16.2 is 31602, v42 will be 420000, and so on. */
33 #define SIMGRID_VERSION (100UL * (100UL * (SIMGRID_VERSION_MAJOR) + (SIMGRID_VERSION_MINOR)) + (SIMGRID_VERSION_PATCH))
34
35 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
36
37 #endif /* SIMGRID_VERSION_H */