src/types.h

changeset 84
88c4b3ca3e5d
parent 82
841562f5a32f
child 85
264a61e9eba0
equal deleted inserted replaced
83:4655d342a998 84:88c4b3ca3e5d
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
58 #ifdef IN_IDE_PARSER 44 #ifdef IN_IDE_PARSER
59 using FILE = void; 45 using FILE = void;
60 #endif 46 #endif
61 47
62 #endif // BOTC_TYPES_H 48 #endif // BOTC_TYPES_H

mercurial