From 2da24ab86301ff75670beb4150b56d9339e590d1 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 13 May 2011 17:30:08 +0100 Subject: Add compile time checks for size of public structs To help catch accidental changes to the size of public structs that can be allocated on the stack this patch adds compile time checks that our struct sizes haven't changed. --- cogl/cogl-quaternion.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cogl/cogl-quaternion.h') diff --git a/cogl/cogl-quaternion.h b/cogl/cogl-quaternion.h index 1b83bac5..33ca9845 100644 --- a/cogl/cogl-quaternion.h +++ b/cogl/cogl-quaternion.h @@ -132,6 +132,7 @@ struct _CoglQuaternion float padding2; float padding3; }; +COGL_STRUCT_SIZE_ASSERT (CoglQuaternion, 32); /** * cogl_quaternion_init: -- cgit v1.2.1