- THROWF(arg_error, 0, "End of string found while searching for %c in %s", (in_simple_quote ? '\'' : '"'), s);
+ throw std::invalid_argument(simgrid::xbt::string_printf("End of string found while searching for %c in %s",
+ (in_simple_quote ? '\'' : '"'), s));