added hr_exception_str

This commit is contained in:
Zeno Rogue 2021-03-21 10:44:38 +01:00
parent b55eb5721e
commit 242b601a51
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ struct hr_wrong_dir: hr_exception { };
struct hr_wrong_geometry: hr_exception { };
struct hr_exception_str: std::exception { string s; hr_exception_str(const string& s) : s(s) {} const char* what() { return s.c_str(); }};
// genus (in grammar)
#define GEN_M 0
#define GEN_F 1