summaryrefslogtreecommitdiff
path: root/cogl/cogl-quaternion.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-05-13 17:30:08 +0100
committerRobert Bragg <robert@linux.intel.com>2011-05-16 14:12:49 +0100
commit2da24ab86301ff75670beb4150b56d9339e590d1 (patch)
tree2b42a6389698e0f41187e2816eda294010257513 /cogl/cogl-quaternion.h
parentdf1915d95735f4d13489f955235f5e532161494a (diff)
downloadcogl-2da24ab86301ff75670beb4150b56d9339e590d1.tar.gz
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.
Diffstat (limited to 'cogl/cogl-quaternion.h')
-rw-r--r--cogl/cogl-quaternion.h1
1 files changed, 1 insertions, 0 deletions
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: