static*/
| 77 | |
| 78 | /*static*/ |
| 79 | task_code task_code::try_get(const char *name, task_code default_value) |
| 80 | { |
| 81 | int code = task_code_mgr::instance().get_id(name); |
| 82 | if (code == -1) |
| 83 | return default_value; |
| 84 | return task_code(code); |
| 85 | } |
| 86 | |
| 87 | /*static*/ |
| 88 | task_code task_code::try_get(const std::string &name, task_code default_value) |