Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'add_remaining_comm_sync_bindings' into 'master'
[simgrid.git] / teshsuite / xbt / cmdline / cmdline.c
1 /* Copyright (c) 2018-2022. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "simgrid/engine.h"
7 #include <xbt.h>
8
9 #define SIMIX_H_NO_DEPRECATED_WARNING // avoid deprecation warning on include (remove with XBT_ATTRIB_DEPRECATED_v335)
10 #include "simgrid/simix.h" // we don't need it, but someone must check that this file is actually usable in plain C
11
12 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logging specific to this test");
13
14 int main(int argc, char** argv)
15 {
16   simgrid_init(&argc, argv);
17
18   for (int i = 1; i < argc; i++)
19     XBT_INFO("argv[%d]=%s", i, argv[i]);
20
21   return 0;
22 }