Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
2ec99095
Commit
2ec99095
authored
Mar 26, 2019
by
gsamain
Committed by
Xavier Thompson
Jun 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saner cypclass destructor
parent
ff8734c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-3
No files found.
Cython/Compiler/ModuleNode.py
View file @
2ec99095
...
...
@@ -990,7 +990,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self
.
generate_cyp_class_wrapper_definitions
(
scope
.
sue_entries
,
code
)
py_attrs
=
[
e
for
e
in
scope
.
entries
.
values
()
if
e
.
type
.
is_pyobject
and
not
e
.
is_inherited
]
cypclass_attrs
=
[
e
for
e
in
scope
.
entries
.
values
()
cypclass_attrs
=
[
e
for
e
in
scope
.
var_entries
if
e
.
type
.
is_cyp_class
and
not
e
.
name
==
"this"
and
not
e
.
is_type
]
has_virtual_methods
=
False
...
...
@@ -1051,8 +1051,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
arg_names
=
[]
generate_cpp_constructor_code
(
arg_decls
,
arg_names
,
is_implementing
,
py_attrs
,
constructor
)
if
destructor
or
py_attrs
or
has_virtual_methods
:
if
has_virtual_methods
:
if
type
.
is_cyp_class
or
destructor
or
py_attrs
or
has_virtual_methods
:
if
has_virtual_methods
or
type
.
is_cyp_class
:
code
.
put
(
"virtual "
)
if
is_implementing
:
code
.
putln
(
"~%s() {"
%
type
.
cname
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment