mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-10 18:24:19 +00:00
tod: Adjust syntax as per new uncrustify
This commit is contained in:
+11
-11
@@ -102,23 +102,23 @@ check_compatiblity_auto (GType old_type, GType current_type)
|
||||
}
|
||||
|
||||
#define check_type_compatibility(type, major, minor, micro) \
|
||||
g_debug ("Checking " # type " @ " G_STRLOC); \
|
||||
check_compatiblity_auto (type ## _TOD_V ## major ## _ ## minor ## _ ## micro, type);
|
||||
g_debug ("Checking " # type " @ " G_STRLOC); \
|
||||
check_compatiblity_auto (type ## _TOD_V ## major ## _ ## minor ## _ ## micro, type);
|
||||
|
||||
#define tod_versioned_type(type, major, minor, micro) \
|
||||
type ## TODV ## major ## _ ## minor ## _ ## micro
|
||||
type ## TODV ## major ## _ ## minor ## _ ## micro
|
||||
|
||||
#define check_struct_size(type, major, minor, micro) \
|
||||
g_debug ("Checking " # type " v" #major "." #minor "." #micro " size @ " G_STRLOC); \
|
||||
g_assert_cmpuint (sizeof (tod_versioned_type (type, major, minor, micro)), \
|
||||
==, \
|
||||
sizeof (type))
|
||||
g_debug ("Checking " # type " v" #major "." #minor "." #micro " size @ " G_STRLOC); \
|
||||
g_assert_cmpuint (sizeof (tod_versioned_type (type, major, minor, micro)), \
|
||||
==, \
|
||||
sizeof (type))
|
||||
|
||||
#define check_struct_member(type, major, minor, micro, member) \
|
||||
g_debug ("Checking " # type " v" #major "." #minor "." #micro "'s " # member " offset @ " G_STRLOC); \
|
||||
g_assert_cmpuint (G_STRUCT_OFFSET (tod_versioned_type (type, major, minor, micro), member), \
|
||||
==, \
|
||||
G_STRUCT_OFFSET (type, member))
|
||||
g_debug ("Checking " # type " v" #major "." #minor "." #micro "'s " # member " offset @ " G_STRLOC); \
|
||||
g_assert_cmpuint (G_STRUCT_OFFSET (tod_versioned_type (type, major, minor, micro), member), \
|
||||
==, \
|
||||
G_STRUCT_OFFSET (type, member))
|
||||
|
||||
static void
|
||||
test_device_type (void)
|
||||
|
||||
Reference in New Issue
Block a user