From d385bc6a108d66ba539ae5bba20c69d822397b1a Mon Sep 17 00:00:00 2001
From: Rick Gibbed <rick@gibbed.us>
Date: Sun, 26 May 2013 02:36:07 -0700
Subject: [PATCH] Added XEASSERTSTRUCTSIZE macro.

---
 src/xenia/assert.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xenia/assert.h b/src/xenia/assert.h
index 4f2fc60c5..fc4abaf9d 100644
--- a/src/xenia/assert.h
+++ b/src/xenia/assert.h
@@ -69,5 +69,6 @@
 #define XESTATICASSERT(expr, message)   XESTATICASSERT2(expr, __LINE__)
 #endif  // MSVC
 
+#define XEASSERTSTRUCTSIZE(target, size) XESTATICASSERT(sizeof(target) == size, "bad definition for " ## target ## ": must be " ## size ## " bytes")
 
 #endif  // XENIA_ASSERT_H_