2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

- Generates the unique number for UniqueInt using the hash of the filename

[SVN r22329]
This commit is contained in:
Bruno da Silva de Oliveira
2004-02-19 22:26:54 +00:00
parent 7b602ef607
commit 29f3891a68

View File

@@ -32,7 +32,7 @@ class EnumExporter(Exporter):
full_name = self.enum.FullName()
unnamed_enum = False
if rename.startswith('$_') or rename.startswith('._'):
unique_number = int(rename[2:])
unique_number = hash(self.info.include)
unnamed_enum = True
self.ExportUniqueInt(codeunit)
full_name = namespaces.pyste + 'UniqueInt<%d>' % unique_number