X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FError.hh;h=05c637705a96d77c91169803e41ae4b1b7f8f6fc;hp=6dab32ffd07e14e93d8cbad3a6bc0620be5e4f7e;hb=3f6e44698c38b74bb622ad81ea9d2daa636981d2;hpb=a295f8def17036c8071b56e181364f99a377cae7 diff --git a/src/Moof/Error.hh b/src/Moof/Error.hh index 6dab32f..05c6377 100644 --- a/src/Moof/Error.hh +++ b/src/Moof/Error.hh @@ -43,9 +43,11 @@ public: enum Code { - NONE = 0, + UNINITIALIZED = -1, // - + NONE = 0, // - ALC_INIT, // description FASTEVENTS_INIT, // description + OPENAL_INIT, // description FILE_NOT_FOUND, // path of missing file RESOURCE_NOT_FOUND, // name of missing resource SCRIPT_ERROR, // description @@ -88,6 +90,12 @@ public: return mCode != NONE; } + void reset() throw() + { + mCode = NONE; + mWhat[0] = '\0'; + } + private: unsigned mCode;