Add version printer.

This commit is contained in:
Bartosz Taudul 2020-09-10 20:38:22 +02:00
parent 75ae14cd04
commit 81dc6c216e

11
extra/version.cpp Normal file
View File

@ -0,0 +1,11 @@
#include <stdint.h>
#include <stdio.h>
#include "../server/TracyFileHeader.hpp"
#include "../server/TracyVersion.hpp"
int main()
{
const auto ver = uint32_t( tracy::FileVersion( tracy::Version::Major, tracy::Version::Minor, tracy::Version::Patch ) );
fwrite( &ver, 1, 4, stdout );
}