xref: /aosp_15_r20/external/bcc/src/cc/bcc_version.h.in (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1#ifndef LIBBCC_VERSION_H
2#define LIBBCC_VERSION_H
3
4#define LIBBCC_VERSION "@REVISION@"
5#define LIBBCC_MAJOR_VERSION @REVISION_MAJOR@
6#define LIBBCC_MINOR_VERSION @REVISION_MINOR@
7#define LIBBCC_PATCH_VERSION @REVISION_PATCH@
8
9#define __LIBBCC_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
10#define LIBBCC_VERSION_CODE __LIBBCC_VERSION(LIBBCC_MAJOR_VERSION, LIBBCC_MINOR_VERSION, LIBBCC_PATCH_VERSION)
11#define LIBBCC_VERSION_GEQ(a,b,c) LIBBCC_VERSION_CODE >= __LIBBCC_VERSION(a, b, c)
12
13#endif
14