src/types.h

changeset 82
841562f5a32f
parent 81
071715c17296
child 84
88c4b3ca3e5d
equal deleted inserted replaced
81:071715c17296 82:841562f5a32f
39 template<class T> inline T abs (T a) 39 template<class T> inline T abs (T a)
40 { 40 {
41 return (a >= 0) ? a : -a; 41 return (a >= 0) ? a : -a;
42 } 42 }
43 43
44 // =============================================================================
45 // A simple basic exception
46 //
47 class simple_exception : public std::exception
48 {
49 public:
50 simple_exception();
51
52 inline const char* what() const throw()
53 {
54 return "simple exception";
55 }
56 };
57
44 #ifdef IN_IDE_PARSER 58 #ifdef IN_IDE_PARSER
45 using FILE = void; 59 using FILE = void;
46 #endif 60 #endif
47 61
48 #endif // BOTC_TYPES_H 62 #endif // BOTC_TYPES_H

mercurial