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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
195b23c9
Commit
195b23c9
authored
Sep 12, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up __pyx_fatalerror() and avoid inlining it.
parent
9d55b5ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+7
-4
No files found.
Cython/Utility/MemoryView_C.c
View file @
195b23c9
...
@@ -440,8 +440,12 @@ no_fail:
...
@@ -440,8 +440,12 @@ no_fail:
return
retval
;
return
retval
;
}
}
#ifndef Py_NO_RETURN
// available since Py3.3
#define Py_NO_RETURN
#endif
static
CYTHON_INLINE
void
__pyx_fatalerror
(
const
char
*
fmt
,
...)
{
static
void
__pyx_fatalerror
(
const
char
*
fmt
,
...)
Py_NO_RETURN
{
va_list
vargs
;
va_list
vargs
;
char
msg
[
200
];
char
msg
[
200
];
...
@@ -450,11 +454,10 @@ static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) {
...
@@ -450,11 +454,10 @@ static CYTHON_INLINE void __pyx_fatalerror(const char *fmt, ...) {
#else
#else
va_start
(
vargs
);
va_start
(
vargs
);
#endif
#endif
vsnprintf
(
msg
,
200
,
fmt
,
vargs
);
vsnprintf
(
msg
,
200
,
fmt
,
vargs
);
Py_FatalError
(
msg
);
va_end
(
vargs
);
va_end
(
vargs
);
Py_FatalError
(
msg
);
}
}
static
CYTHON_INLINE
int
static
CYTHON_INLINE
int
...
...
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