mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
#ifndef R2_HEAP_JEMALLOC_H
|
|
#define R2_HEAP_JEMALLOC_H
|
|
|
|
#include "r_jemalloc/internal/jemalloc_internal.h"
|
|
|
|
#define INC_HEAP32 1
|
|
#include "r_heap_jemalloc.h"
|
|
#undef INC_HEAP32
|
|
#endif
|
|
|
|
#undef GH
|
|
#undef GHT
|
|
#undef GHT_MAX
|
|
|
|
#if INC_HEAP32
|
|
#define GH(x) x##_32
|
|
#define GHT ut32
|
|
#define GHT_MAX UT32_MAX
|
|
#else
|
|
#define GH(x) x##_64
|
|
#define GHT ut64
|
|
#define GHT_MAX UT64_MAX
|
|
#endif
|
|
|
|
#define PRINTF_A(color, fmt , ...) r_cons_printf (color fmt Color_RESET, __VA_ARGS__)
|
|
#define PRINTF_YA(fmt, ...) PRINTF_A ("%s", fmt, r_cons_singleton ()->context->pal.offset, __VA_ARGS__)
|
|
#define PRINTF_GA(fmt, ...) PRINTF_A ("%s", fmt, r_cons_singleton ()->context->pal.args, __VA_ARGS__)
|
|
#define PRINTF_BA(fmt, ...) PRINTF_A ("%s", fmt, r_cons_singleton ()->context->pal.num, __VA_ARGS__)
|
|
#define PRINTF_RA(fmt, ...) PRINTF_A ("%s", fmt, r_cons_singleton ()->context->pal.invalid, __VA_ARGS__)
|
|
|
|
#define PRINT_A(color, msg) r_cons_print (color msg Color_RESET)
|
|
#define PRINT_YA(msg) r_cons_printf ("%s" msg Color_RESET, r_cons_singleton ()->context->pal.offset)
|
|
#define PRINT_GA(msg) r_cons_printf ("%s" msg Color_RESET, r_cons_singleton ()->context->pal.args)
|
|
#define PRINT_BA(msg) r_cons_printf ("%s" msg Color_RESET, r_cons_singleton ()->context->pal.num)
|
|
#define PRINT_RA(msg) r_cons_printf ("%s" msg Color_RESET, r_cons_singleton ()->context->pal.invalid)
|