Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
64fa449f
Commit
64fa449f
authored
Jul 10, 2017
by
Victor Stinner
Committed by
GitHub
Jul 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30866: Add _testcapi.stack_pointer() (#2601)
parent
3b69d911
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Modules/_testcapimodule.c
Modules/_testcapimodule.c
+8
-0
No files found.
Modules/_testcapimodule.c
View file @
64fa449f
...
...
@@ -4272,6 +4272,13 @@ test_pyobject_fastcallkeywords(PyObject *self, PyObject *args)
return
_PyObject_FastCallKeywords
(
func
,
stack
,
nargs
,
kwnames
);
}
static
PyObject
*
stack_pointer
(
PyObject
*
self
,
PyObject
*
args
)
{
int
v
=
5
;
return
PyLong_FromVoidPtr
(
&
v
);
}
static
PyMethodDef
TestMethods
[]
=
{
{
"raise_exception"
,
raise_exception
,
METH_VARARGS
},
...
...
@@ -4485,6 +4492,7 @@ static PyMethodDef TestMethods[] = {
{
"pyobject_fastcall"
,
test_pyobject_fastcall
,
METH_VARARGS
},
{
"pyobject_fastcalldict"
,
test_pyobject_fastcalldict
,
METH_VARARGS
},
{
"pyobject_fastcallkeywords"
,
test_pyobject_fastcallkeywords
,
METH_VARARGS
},
{
"stack_pointer"
,
stack_pointer
,
METH_NOARGS
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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