From: Martin Quinson Date: Tue, 8 Jan 2019 07:20:12 +0000 (+0100) Subject: include pybind11.h first, as we should X-Git-Tag: v3_22~650 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc59be9674734262beb2d7353c5e1c3193b92019 include pybind11.h first, as we should --- diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 5c4f434da5..23cf09f74e 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -3,15 +3,15 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include // Must be first +#include + #include "src/kernel/context/Context.hpp" #include #include #include #include -#include -#include - #include #include #include @@ -86,7 +86,7 @@ PYBIND11_MODULE(simgrid, m) return new simgrid::s4u::Engine(&argc, argv.get()); })) .def("get_all_hosts", &Engine::get_all_hosts, "Returns the list of all hosts found in the platform") - .def("get_clock", &Engine::get_clock, "Retrieve the simulation time") + .def("get_clock", &Engine::get_clock, "Retrieve the simulation time (in seconds)") .def("load_platform", &Engine::load_platform, "Load a platform file describing the environment, see :cpp:func:`simgrid::s4u::Engine::load_platform()`") .def("load_deployment", &Engine::load_deployment,