/* s4u::Engine Simulation Engine and global functions. */
-/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2022. The SimGrid Team. All rights reserved. */
/* 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. */
/** @brief Retrieve the engine singleton */
Engine* Engine::get_instance()
{
- return get_instance(nullptr, nullptr);
+ int argc = 0;
+ char* argv = nullptr;
+ return get_instance(&argc, &argv);
}
Engine* Engine::get_instance(int* argc, char** argv)
{
return Engine::instance_;
}
-void Engine::shutdown()
+void Engine::shutdown() // XBT_ATTRIB_DEPRECATED_v335
{
delete Engine::instance_;
}