You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature has been added in the latest commit. Here's a concise example demonstrating the use of both LUNASVG_VERSION_STRING and LUNASVG_VERSION_ENCODE:
#include<iostream>
#include<lunasvg.h>intmain() {
std::cout << "LunaSVG version: " << LUNASVG_VERSION_STRING << std::endl;
if (LUNASVG_VERSION > LUNASVG_VERSION_ENCODE(2, 3, 0)) {
std::cout << "Current version is newer than 2.3.0" << std::endl;
}
return0;
}
This example prints the current version string and checks if the current version is newer than 2.3.0.
Perhaps I didn't look carefully, but I was not able to find a way to to get the library version information from source code.
The text was updated successfully, but these errors were encountered: