Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement s4u_enforce
authorTom Cornebize <tom.cornebize@intel.com>
Tue, 21 Jun 2022 08:57:36 +0000 (10:57 +0200)
committerTom Cornebize <tom.cornebize@intel.com>
Tue, 21 Jun 2022 09:41:36 +0000 (11:41 +0200)
commit3bf15ad45770ae3b776962f3f3fb268de4534769
tree0d86c40c0fd41f212bfa263daaa8e4cabc7e1a32
parente2ff9669502bd6fc2ad1614103bea9e1edf36980
Implement s4u_enforce

This adds a new macro, s4u_enforce, with the same syntax as xbt_assert.
The difference with xbt_assert is that this macro will throw an
exception if the statement is false, instead of calling abort().
MANIFEST.in
include/simgrid/Exception.hpp
include/xbt/asserts.hpp [new file with mode: 0644]
src/bindings/python/simgrid_python.cpp
src/kernel/routing/NetZoneImpl.cpp
src/kernel/routing/RoutedZone.cpp
src/simgrid/Exception.cpp
src/surf/HostImpl.cpp