17# define QPALM_EXPORT __attribute__((dllexport))
19# define QPALM_EXPORT __attribute__((dllimport))
25# define QPALM_EXPORT __declspec(dllexport)
27# define QPALM_EXPORT __declspec(dllimport)
33# define QPALM_EXPORT __attribute__((visibility("default")))
75# define qpalm_print ladel_print
79# define qpalm_eprint(...) __extension__ ({ qpalm_print("ERROR in %s: ", __FUNCTION__); qpalm_print(__VA_ARGS__); qpalm_print("\n"); })
81# define qpalm_eprint(...) do { qpalm_print("ERROR in %s: ", __FUNCTION__); qpalm_print(__VA_ARGS__); qpalm_print("\n"); } while (0)
92# define c_absval(x) (((x) < 0) ? -(x) : (x))
96# define c_max(a, b) (((a) > (b)) ? (a) : (b))
100# define c_min(a, b) (((a) < (b)) ? (a) : (b))
104# define mod(a,b) ((((a)%(b))+(b))%(b))
void qpalm_free(void *ptr)
calloc_sig * qpalm_set_alloc_config_calloc(calloc_sig *calloc)
Set the calloc function used by QPALM.
realloc_sig * qpalm_set_alloc_config_realloc(realloc_sig *realloc)
Set the realloc function used by QPALM.
ladel_int c_int
type for integer numbers
ladel_double c_float
type for floating point numbers
void * qpalm_malloc(size_t size)
printf_sig * qpalm_set_print_config_printf(printf_sig *printf)
Set the printf function used by QPALM.
void * qpalm_calloc(size_t num, size_t size)
malloc_sig * qpalm_set_alloc_config_malloc(malloc_sig *malloc)
Set the malloc function used by QPALM.
free_sig * qpalm_set_alloc_config_free(free_sig *free)
Set the free function used by QPALM.
void * qpalm_realloc(void *ptr, size_t size)