projects
/
free-sw
/
xcb
/
proto
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd636f
)
Add a useful assertion message if a type gets multiply declared.
author
Jamey Sharp
<jamey@minilop.net>
Thu, 15 Jun 2006 17:27:40 +0000
(10:27 -0700)
committer
Jamey Sharp
<jamey@minilop.net>
Thu, 15 Jun 2006 17:27:40 +0000
(10:27 -0700)
src/size.py
patch
|
blob
|
history
diff --git
a/src/size.py
b/src/size.py
index
8376833
..
5ead8b2
100755
(executable)
--- a/
src/size.py
+++ b/
src/size.py
@@
-21,7
+21,7
@@
class AnnotateSize(XMLFilterBase):
}
header = []
def setTypeSize(self, name, size):
- assert not self.types.has_key(name)
+ assert not self.types.has_key(name)
, "size of " + name + " declared as both " + str(size) + " and " + str(self.types[name])
self.types[name] = size
struct = None