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
dccf5885
Commit
dccf5885
authored
May 05, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow utility code for declared C properties.
parent
81a8955c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+3
-1
No files found.
Cython/Compiler/Symtab.py
View file @
dccf5885
...
...
@@ -2413,7 +2413,8 @@ class CClassScope(ClassScope):
return
entry
def
declare_cproperty
(
self
,
name
,
type
,
cfunc_name
,
doc
=
None
,
pos
=
None
,
visibility
=
'extern'
,
nogil
=
False
,
with_gil
=
False
,
exception_value
=
None
,
exception_check
=
False
):
nogil
=
False
,
with_gil
=
False
,
exception_value
=
None
,
exception_check
=
False
,
utility_code
=
None
):
"""Internal convenience method to declare a C property function in one go.
"""
property_entry
=
self
.
declare_property
(
name
,
doc
=
doc
,
ctype
=
type
,
pos
=
pos
)
...
...
@@ -2428,6 +2429,7 @@ class CClassScope(ClassScope):
exception_check
=
exception_check
,
),
cname
=
cfunc_name
,
utility_code
=
utility_code
,
visibility
=
visibility
,
pos
=
pos
,
)
...
...
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