all code except of pst_function & pst_handler rewritten on C language.

Logger nad Allocator decided to be a global for all library
This commit is contained in:
2020-02-01 15:19:55 +04:00
parent fcdb15ba95
commit 8251ba526f
30 changed files with 2073 additions and 2068 deletions
+11 -1
View File
@@ -1,8 +1,18 @@
#pragma once
#ifndef __PST_COMMON_H__
#define __PST_COMMON_H__
#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);
bool is_location_form(int form);
#endif // __PST_COMMON_H__