mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Bump default godot version for search
- Change error code from `NONE` TO `IGNORE` - Added format function to utils - Implement version functions
This commit is contained in:
parent
d9a9ea6426
commit
d2a77fe28f
6 changed files with 46 additions and 15 deletions
|
|
@ -11,7 +11,7 @@
|
|||
namespace gdpm::constants::error{
|
||||
|
||||
enum class ec{
|
||||
NONE = 0,
|
||||
IGNORE = 0,
|
||||
UNKNOWN,
|
||||
UNKNOWN_COMMAND,
|
||||
UNKNOWN_ARGUMENT,
|
||||
|
|
@ -93,7 +93,7 @@ namespace gdpm{
|
|||
namespace ce = constants::error;
|
||||
class error {
|
||||
public:
|
||||
constexpr explicit error(ec code = ec::NONE, const string& message = "{default}"):
|
||||
constexpr explicit error(ec code = ec::IGNORE, const string& message = "{default}"):
|
||||
m_code(code),
|
||||
m_message(utils::replace_all(message, "{default}", ce::get_message(code)))
|
||||
{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue