/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/Require.h
12 строк
564 B
Matti Kortelainen
Replace asserts with exceptions in many integration test modules
21 май 2026, 22:35
21 май 2026, 22:35
bf697ef
Код
Авторство
О чём код?
#ifndef FWCore_Integration_plugins_Require_h #define FWCore_Integration_plugins_Require_h #include "FWCore/Utilities/interface/Exception.h" #define REQUIRE(cond) \ do { \ if (!(cond)) \ throw cms::Exception("Assert") << "Assertion failed: " #cond " (line " << __LINE__ << ")"; \ } while (false) #endif