Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-03-12 00:20:33 +0300
committerDaniel Dunbar <daniel@zuster.org>2005-03-12 00:20:33 +0300
commitf8a8f355b5e687cc9ed2d71145811da2ae53470e (patch)
tree9f177d2eee306ae46f175d669810ce8232da6071 /source/blender/makesdna/intern/makesdna.c
parent18c01053cbc30d2b652e09af653a31e7301cd24c (diff)
- made makesdna print how many bytes of padding should be added in
a struct on alignment errors, simplifies fixing.
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r--source/blender/makesdna/intern/makesdna.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index eec499862b7..fc95c1277d5 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -718,11 +718,12 @@ int calculate_structlens(void)
/* 2-4 aligned/ */
if(typelens[type]>3 && (len % 4) ) {
- printf("Align 4 error in struct: %s %s\n", types[structtype], cp);
+ printf("Align 4 error in struct: %s %s (add %d padding bytes)\n", types[structtype], cp, len%4);
+ printf(" \n", len%4);
dna_error = 1;
}
else if(typelens[type]==2 && (len % 2) ) {
- printf("Align 2 error in struct: %s %s\n", types[structtype], cp);
+ printf("Align 2 error in struct: %s %s (add %d padding bytes)\n", types[structtype], cp, len%2);
dna_error = 1;
}