Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ddprof-lib/src/main/cpp/safeAccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ class SafeAccess {

static bool handle_safefetch(int sig, void* context);

static inline void *load(void **ptr) {
static inline void *load(void **ptr, void* default_value = nullptr) {
return loadPtr(ptr, nullptr);
}

static inline u32 load32(u32 *ptr, u32 default_value) {
static inline u32 load32(u32 *ptr, u32 default_value = 0) {
int res = safefetch32_impl((int*)ptr, (int)default_value);
return static_cast<u32>(res);
}
Expand Down
Loading