9 #ifndef __HOM_ErrorUtil_h__
10 #define __HOM_ErrorUtil_h__
24 if (!pointer || (!allow_empty && !*pointer))
25 throw HOM_ValueError(msg);
28 #else // !defined(SWIG)
39 throw HOM_ValueError(msg);
43 SYS_STATIC_INLINE
void
48 if (!pointer || (!allow_empty && !*pointer))
49 throw HOM_ValueError(msg);
54 #endif // __HOM_ErrorUtil_h__
void HOMthrowIfNone(const T *pointer, const char *msg, bool allow_empty=true)
SYS_STATIC_INLINE void HOMthrowIfNone< char >(const char *pointer, const char *msg, bool allow_empty)