mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
This uses the .clang-format file in the follow-up commit, but committed prior to that to ease review of said file and various integrations. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1246>
25 lines
392 B
C
25 lines
392 B
C
#include <assert.h>
|
|
#include <stdio.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
const char *version = LIBINPUT_LT_VERSION;
|
|
int C, R, A;
|
|
int rc;
|
|
|
|
rc = sscanf(version, "%d:%d:%d", &C, &R, &A);
|
|
assert(rc == 3);
|
|
|
|
assert(C >= 17);
|
|
assert(R >= 0);
|
|
assert(A >= 7);
|
|
|
|
/* Binary compatibility broken? */
|
|
assert(R != 0 || A != 0);
|
|
|
|
/* The first stable API in 0.12 had 10:0:0 */
|
|
assert(C - A == 10);
|
|
|
|
return 0;
|
|
}
|