Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Actually, read()=0 is not an issue in the AppSide
[simgrid.git] / include / xbt / module.h
1 /* module - modularize the code                                             */
2
3 /* Copyright (c) 2004-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 XBT_MODULE_H
9 #define XBT_MODULE_H
10
11 // avoid deprecation warning on include (remove entire file with XBT_ATTRIB_DEPRECATED_v337)
12 #ifndef XBT_MODULE_H_NO_DEPRECATED_WARNING
13 #warning xbt/module.h is deprecated and will be removed in v3.37.
14 #endif
15
16 #include <simgrid/engine.h>
17 #include <xbt/base.h>
18
19 SG_BEGIN_DECL
20
21 XBT_ATTRIB_DEPRECATED_v337("Please use simgrid_init(&argc, argv) instead") static void xbt_init(int* argc, char** argv)
22 {
23   simgrid_init(argc, argv);
24 }
25
26 SG_END_DECL
27
28 #endif /* XBT_MODULE_H */