-/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2023. 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. */
e.run();
// get user declared variables
- const auto& host_variables = simgrid::instr::get_host_variables();
- if (not host_variables.empty()) {
+ if (const auto& host_variables = simgrid::instr::get_host_variables(); not host_variables.empty()) {
XBT_INFO("Declared host variables:");
for (const auto& var : host_variables)
XBT_INFO("%s", var.c_str());