#ifndef __MAIN_HPP #define __MAIN_HPP #include #include #include #include #include void Verbose(char* s); char* FindArg(char*, char*, char*); int FindSwitch(int); void Main(void); class Exception { public: char error[80]; Exception(char* _s) { strcpy(error, _s ? _s : "Error!"); } }; inline void ThrowIf(int a, char* s = NULL) { if (a) throw Exception(s); } #endif