Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
000ff871
Commit
000ff871
authored
Aug 27, 2013
by
Uwe Schulzweida
Browse files
error.c: elide __attribute for non GNU C
parent
01bb759b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/error.c
View file @
000ff871
...
@@ -55,7 +55,10 @@ void Error_(const char *caller, const char *fmt, ...)
...
@@ -55,7 +55,10 @@ void Error_(const char *caller, const char *fmt, ...)
typedef
void
(
*
cdiAbortCFunc
)(
const
char
*
caller
,
const
char
*
filename
,
typedef
void
(
*
cdiAbortCFunc
)(
const
char
*
caller
,
const
char
*
filename
,
const
char
*
functionname
,
int
line
,
const
char
*
functionname
,
int
line
,
const
char
*
errorString
,
va_list
ap
)
const
char
*
errorString
,
va_list
ap
)
__attribute__
((
noreturn
));
#ifdef __GNUC__
__attribute__
((
noreturn
))
#endif
;
void
cdiAbortC
(
const
char
*
caller
,
const
char
*
filename
,
void
cdiAbortC
(
const
char
*
caller
,
const
char
*
filename
,
const
char
*
functionname
,
int
line
,
const
char
*
functionname
,
int
line
,
...
...
src/error.h
View file @
000ff871
...
@@ -46,10 +46,13 @@ void cdiAbortC(const char *caller, const char *filename,
...
@@ -46,10 +46,13 @@ void cdiAbortC(const char *caller, const char *filename,
const
char
*
functionname
,
int
line
,
const
char
*
functionname
,
int
line
,
const
char
*
errorString
,
...
)
const
char
*
errorString
,
...
)
__attribute__
((
noreturn
));
__attribute__
((
noreturn
));
#define xabortC(caller, ...) \
#define xabortC(caller, ...) \
cdiAbortC(caller, __FILE__, __func__, __LINE__, __VA_ARGS__ )
cdiAbortC(caller, __FILE__, __func__, __LINE__, __VA_ARGS__ )
#define xabort(...) \
#define xabort(...) \
cdiAbortC(NULL, __FILE__, __func__, __LINE__, __VA_ARGS__ )
cdiAbortC(NULL, __FILE__, __func__, __LINE__, __VA_ARGS__ )
#define cdiAbort(file, func, line, ...) \
#define cdiAbort(file, func, line, ...) \
cdiAbortC(NULL, (file), (func), (line), __VA_ARGS__)
cdiAbortC(NULL, (file), (func), (line), __VA_ARGS__)
...
...
Write
Preview
Supports
Markdown
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