checkerror.h

一些检查和报错的宏

Author

Zhu Dengda (zhudengda@mail.iggcas.ac.cn)

Date

2025-08

Defines

GRTRaiseError(ErrorMessage, ...)
GRTRaiseWarning(WarnMessage, ...)
GRTBadOptionError(name, X, MoreErrorMessage, ...)
GRTMissArgsError(name, X, MoreErrorMessage, ...)
GRTInvalidOptionError(name, X, MoreErrorMessage, ...)
GRTFileNotFoundError(name, filepath)
GRTFileOpenError(name, filepath)
GRTMakeDirError(name, dirpath, errno)
GRTDirNotFoundError(name, dirpath)
GRTCheckOptionActive(name, Ctrl, X)
GRTCheckOptionSet(name, condition)
GRTCheckFileExist(name, filepath)
GRTCheckOpenFile(name, filepath, mode)
GRTCheckMakeDir(name, dirpath)
GRTCheckDirExist(name, dirpath)