-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.cc
More file actions
42 lines (37 loc) · 1.23 KB
/
version.cc
File metadata and controls
42 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "version.hh"
#include <SDL.h>
namespace SDL {
namespace _implementation {
namespace version {
SDL_version get_linked_sdl_version() {
SDL_version version;
SDL_GetVersion(&version);
return version;
}
SDL_version get_compiled_sdl_version() {
SDL_version version;
SDL_GetVersion(&version);
return version;
}
const SDL_version linked = get_linked_sdl_version();
const SDL_version compiled = get_compiled_sdl_version();
}
}
const Version<> objective_sdl_version({1, 0, 0}, VersionType::alpha);
const Version<> sdl_linked_version(
{
_implementation::version::linked.major,
_implementation::version::linked.minor,
_implementation::version::linked.patch
},
VersionType::release
);
const Version<> sdl_compiled_version(
{
_implementation::version::compiled.major,
_implementation::version::compiled.minor,
_implementation::version::compiled.patch
},
VersionType::release
);
}