gdpm/include/version.hpp
David J. Allen d2a77fe28f Bump default godot version for search
- Change error code from `NONE` TO `IGNORE`
- Added format function to utils
- Implement version functions
2024-01-27 14:34:17 -07:00

20 lines
No EOL
365 B
C++

#pragma once
#include "error.hpp"
#include "result.hpp"
#include <string>
namespace gdpm::version{
struct context{
int major = 0;
int minor = 0;
int patch = 0;
string commit = "";
};
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);
}