![]() |
Spicy
|
#include <library.h>
Public Member Functions | |
std::string | toJSON () const |
void | checkCompatibility () const |
Static Public Member Functions | |
static hilti::rt::Result< Version > | fromJSON (const std::string &json) |
Public Attributes | |
std::string | magic |
uint64_t | hilti_version |
bool | debug |
bool | optimize |
hilti::rt::filesystem::path | path |
Friends | |
bool | operator== (const Version &a, const Version &b) |
bool | operator!= (const Version &a, const Version &b) |
Version information that's embedded as JSON into HLTO libraries to record the HILTI version they were compile with.
void hilti::rt::library::Version::checkCompatibility | ( | ) | const |
Checks the version for compatibility with the current runtime system. Prints out warnings on mismatches, but doesn't abort.
|
static |
Parses a JSON representation of an instance.
std::string hilti::rt::library::Version::toJSON | ( | ) | const |
Converts the instances into a JSON string.
bool hilti::rt::library::Version::debug |
true if compiled in debug mode
uint64_t hilti::rt::library::Version::hilti_version |
HILTI project version
std::string hilti::rt::library::Version::magic |
magic string for identification
bool hilti::rt::library::Version::optimize |
true if compiled with optimizations enabled
hilti::rt::filesystem::path hilti::rt::library::Version::path |
path to file that library was loaded from; not embedded into JSON, but filled in by Library::open()