57 #define to_string(a) _to_string(a)
58 #define _to_string(a) #a
64 #define REAL(a) (( FOOTPRINT_ ## a ) Tracelib_resolve_symbol( T_POSIX_ENUM( a ) ))
65 #define pREAL(a) ( Tracelib_resolve_symbol( T_POSIX_ENUM(a) ) )
69 #define _TEST_LOAD_SYMBOL(a) do{ \
70 ___TEST_LOAD_SYMBOL( T_POSIX_ENUM( a ), to_string(a) );\
76 #define TEST_LOAD_SYMBOL(a) _TEST_LOAD_SYMBOL(a);
83 #define TEST_LOAD_SYMBOL(a)
void(* p_func)()
the function pointer (to be used as a function)
void * p
the void* (to be get by dlsym)
void ___TEST_LOAD_SYMBOL(Wrapped_symbol symb, const char *const symbol)
Wrapped_symbol
enum indicating which symbols are wrapped
Union defining a function pointer.
union function_table_elem Tracelib_symbol_table[T_POSIX_COUNT]
The table containing every wrapped symbols.
static void * Tracelib_resolve_symbol(int id)
Gets a symbol with its ID.