Skip to content
GitLab
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
05e2739b
Commit
05e2739b
authored
Nov 21, 2015
by
Uwe Schulzweida
Browse files
delare dmemory functions as extern C
parent
30db26a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dmemory.h
View file @
05e2739b
...
...
@@ -10,6 +10,10 @@
#define WITH_FUNCTION_NAME
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
extern
size_t
memTotal
(
void
);
extern
void
memDebug
(
int
debug
);
extern
void
memExitOnError
(
void
);
...
...
@@ -21,6 +25,10 @@ extern void *memCalloc (size_t nmemb, size_t size, const char *file, const cha
extern
void
*
memMalloc
(
size_t
size
,
const
char
*
file
,
const
char
*
functionname
,
int
line
);
extern
void
memFree
(
void
*
ptr
,
const
char
*
file
,
const
char
*
functionname
,
int
line
);
#if defined (__cplusplus)
}
#endif
#if defined WITH_FUNCTION_NAME
# define Realloc(p, s) memRealloc((p), (s), __FILE__, __func__, __LINE__)
# define Calloc(n, s) memCalloc((n), (s), __FILE__, __func__, __LINE__)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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