Files
pstrace/src/common.h
T

25 lines
447 B
C

#ifndef __PST_COMMON_H__
#define __PST_COMMON_H__
/*
* common.h
*
* Created on: Jan 8, 2020
* Author: nnosov
*/
#include <stdint.h>
#define USE_LIBUNWIND
// TBD custom assertion if needed
#define pst_assert(expr) assert(expr)
// platform-dependent address size
#define PST_GENERIC_SIZE (8) // for x86_64 architecture
int32_t decode_sleb128(uint8_t *sleb128);
uint32_t decode_uleb128(uint8_t *uleb128);
#endif // __PST_COMMON_H__