X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e91f26820b30a2d87b4c723e92eaebbd2dc5ce15..bfffef69e1b0554d13eec920f1a32f75b49ceac6:/include/xbt/asserts.hpp diff --git a/include/xbt/asserts.hpp b/include/xbt/asserts.hpp index 84f647a047..ab9de25156 100644 --- a/include/xbt/asserts.hpp +++ b/include/xbt/asserts.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-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. */ @@ -27,7 +27,7 @@ #define _xbt_enforce_ARG1(cond) _xbt_enforce_ARGN((cond), "Assertion %s failed", #cond) #define _xbt_enforce_ARGN(cond, ...) \ do { \ - if (!(cond)) { \ + if (not(cond)) { \ throw simgrid::AssertionError(XBT_THROW_POINT, xbt::string_printf(__VA_ARGS__)); \ } \ } while (0)