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
79fbf118
Commit
79fbf118
authored
Jul 10, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Isolate C++ fallthrough detection.
parent
3694bb81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+14
-8
No files found.
Cython/Utility/ModuleSetupCode.c
View file @
79fbf118
...
@@ -444,14 +444,20 @@
...
@@ -444,14 +444,20 @@
#ifndef CYTHON_FALLTHROUGH
#ifndef CYTHON_FALLTHROUGH
#if __has_cpp_attribute(fallthrough)
#ifdef __cplusplus
#define CYTHON_FALLTHROUGH [[fallthrough]]
#if __has_cpp_attribute(fallthrough)
#elif __has_cpp_attribute(clang::fallthrough)
#define CYTHON_FALLTHROUGH [[fallthrough]]
#define CYTHON_FALLTHROUGH [[clang::fallthrough]]
#elif __has_cpp_attribute(clang::fallthrough)
#elif __has_attribute(fallthrough) || (defined(__GNUC__) && defined(__attribute__))
#define CYTHON_FALLTHROUGH [[clang::fallthrough]]
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
#endif
#else
#endif
#define CYTHON_FALLTHROUGH
#ifndef CYTHON_FALLTHROUGH
#if __has_attribute(fallthrough) || (defined(__GNUC__) && defined(__attribute__))
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
#else
#define CYTHON_FALLTHROUGH
#endif
#endif
#endif
#endif
#endif
...
...
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