mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
*** empty log message ***
This commit is contained in:
parent
b4df9ee168
commit
fab7e6fde3
@ -26,6 +26,9 @@ class FFIExternalObject:
|
|||||||
# Start with a null this pointer
|
# Start with a null this pointer
|
||||||
self.this = 0
|
self.this = 0
|
||||||
|
|
||||||
|
def destructor(self):
|
||||||
|
# Base destructor in case you do not define one
|
||||||
|
pass
|
||||||
|
|
||||||
def getDowncastFunctions(self, thisClass, baseClass, chain):
|
def getDowncastFunctions(self, thisClass, baseClass, chain):
|
||||||
if (thisClass == baseClass):
|
if (thisClass == baseClass):
|
||||||
|
@ -510,8 +510,7 @@ class ClassTypeDescriptor(BaseTypeDescriptor):
|
|||||||
self.outputBaseDestructor(file, nesting)
|
self.outputBaseDestructor(file, nesting)
|
||||||
if self.destructor:
|
if self.destructor:
|
||||||
self.destructor.generateDestructorCode(self, file, nesting)
|
self.destructor.generateDestructorCode(self, file, nesting)
|
||||||
else:
|
# If you have no destructor, inherit one
|
||||||
self.outputEmptyDestructor(file, nesting)
|
|
||||||
|
|
||||||
if len(self.staticMethods):
|
if len(self.staticMethods):
|
||||||
indent(file, nesting+1, '\n')
|
indent(file, nesting+1, '\n')
|
||||||
@ -765,7 +764,7 @@ class ClassTypeDescriptor(BaseTypeDescriptor):
|
|||||||
empty one instead
|
empty one instead
|
||||||
"""
|
"""
|
||||||
indent(file, nesting+1, 'def destructor(self):\n')
|
indent(file, nesting+1, 'def destructor(self):\n')
|
||||||
indent(file, nesting+2, 'pass\n')
|
indent(file, nesting+2, "raise RuntimeError, 'No C++ destructor defined for class: ' + self.__class__.__name__\n")
|
||||||
|
|
||||||
|
|
||||||
def generateReturnValueWrapper(self, file, userManagesMemory, needsDowncast, nesting):
|
def generateReturnValueWrapper(self, file, userManagesMemory, needsDowncast, nesting):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user