2 #ifdef JEMALLOC_H_TYPES
5 #define BUFERROR_BUF 64
11 #define MALLOC_PRINTF_BUFSIZE 4096
17 #define JEMALLOC_ARG_CONCAT(...) __VA_ARGS__
24 #ifdef JEMALLOC_CC_SILENCE
25 # define JEMALLOC_CC_SILENCE_INIT(v) = v
27 # define JEMALLOC_CC_SILENCE_INIT(v)
35 #define assert(e) do { \
36 if (config_debug && !(e)) { \
38 "<jemalloc>: %s:%d: Failed assertion: \"%s\"\n", \
39 __FILE__, __LINE__, #e); \
46 #define not_reached() do { \
49 "<jemalloc>: %s:%d: Unreachable code reached\n", \
50 __FILE__, __LINE__); \
56 #ifndef not_implemented
57 #define not_implemented() do { \
59 malloc_printf("<jemalloc>: %s:%d: Not implemented\n", \
60 __FILE__, __LINE__); \
66 #ifndef assert_not_implemented
67 #define assert_not_implemented(e) do { \
68 if (config_debug && !(e)) \
74 #define cassert(c) do { \
81 #ifdef JEMALLOC_H_STRUCTS
85 #ifdef JEMALLOC_H_EXTERNS
87 int buferror(
int err,
char *buf,
size_t buflen);
99 JEMALLOC_ATTR(format(
printf, 3, 4));
101 const char *format, va_list ap);
103 const char *format, ...) JEMALLOC_ATTR(format(printf, 3, 4));
105 JEMALLOC_ATTR(format(printf, 1, 2));
109 #ifdef JEMALLOC_H_INLINES
111 #ifndef JEMALLOC_ENABLE_INLINE
117 #if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_UTIL_C_))
129 #if (LG_SIZEOF_PTR == 3)
void format(BasicFormatter< Char > &f, const Char *&format_str, const T &value)
Definition: format.h:2963
#define JEMALLOC_INLINE
Definition: jemalloc_internal.h:259
#define malloc_vcprintf
Definition: private_namespace.h:250
#define malloc_write
Definition: private_namespace.h:252
#define malloc_snprintf
Definition: private_namespace.h:243
#define get_errno
Definition: private_namespace.h:185
#define pow2_ceil
Definition: private_namespace.h:287
void SetLastError(int nError)
Definition: Common.cpp:75
#define set_errno
Definition: private_namespace.h:348
#define malloc_vsnprintf
Definition: private_namespace.h:251
#define buferror
Definition: private_namespace.h:103
#define malloc_cprintf
Definition: private_namespace.h:235
int GetLastError()
Definition: Common.cpp:70
#define restrict
Definition: jemalloc_internal.h:228
#define malloc_strtoumax
Definition: private_namespace.h:244
#define const
Definition: zconf.h:217
G3D::int16 x
Definition: Vector2int16.h:37
uint64_t uintmax_t
Definition: stdint.h:124
#define malloc_printf
Definition: private_namespace.h:242
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083