FEDRA emulsion software from the OPERA Collaboration
sassert.hh File Reference

Go to the source code of this file.

Macros

#define Sassert(expr)   static const bool sassertrc = (expr) ? true : errfunc(__STRING(expr),__FUNCTION__,__LINE__)
 

Macro Definition Documentation

◆ Sassert

#define Sassert (   expr)    static const bool sassertrc = (expr) ? true : errfunc(__STRING(expr),__FUNCTION__,__LINE__)

Sassert. An assert macro which is invoced only once (in contrast to standard assert(), which is repeatedly called). Sassert is more performant in case it is placed in a routine which is called more than once. Otherwise assert() is more performant.

Author
T. Glebe