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
|
|
@ -1,14 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include "error.hpp"
|
||||
#include "result.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace gdpm::version{
|
||||
struct version_context{
|
||||
int major;
|
||||
int minor;
|
||||
int patch;
|
||||
struct context{
|
||||
int major = 0;
|
||||
int minor = 0;
|
||||
int patch = 0;
|
||||
string commit = "";
|
||||
};
|
||||
|
||||
std::string to_string(const version_context& context);
|
||||
version_context to_version(const std::string& version);
|
||||
std::string to_string(const context& context);
|
||||
result_t<context> to_version(const std::string& version);
|
||||
bool is_valid_version_string(const std::string& version);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue