mirror of
https://github.com/boostorg/python.git
synced 2026-01-28 19:32:14 +00:00
- Fixed bug where an union that was a class member crashed pyste (unions are still not exported)
- Added support for int, double, float and long operators [SVN r17991]
This commit is contained in:
@@ -445,8 +445,20 @@ class Typedef(Declaration):
|
||||
self.visibility = Scope.public
|
||||
|
||||
|
||||
class Union(Declaration):
|
||||
'Shallow declaration, because Unions are not supported yet'
|
||||
def __init__(self, name, namespace):
|
||||
Declaration.__init__(self, name, namespace)
|
||||
|
||||
|
||||
|
||||
class ClassUnion(Union):
|
||||
|
||||
def __init__(self, name, class_, visib):
|
||||
Union.__init__(self, name, None)
|
||||
self.class_ = class_
|
||||
self.visibility = visib
|
||||
|
||||
def FullName(self):
|
||||
return '%s::%s' % (self.class_, self.name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user