Skip to content

Commit

Permalink
Sync with main
Browse files Browse the repository at this point in the history
  • Loading branch information
b5i committed Oct 25, 2024
1 parent 76f5bf3 commit 98d2aa8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/lua/src/lua_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ void* custom_allocator(void *ud, void *ptr, size_t osize, size_t nsize) {
free(ptr);
}
return NULL;
} else {
// Allocate or resize the block
#ifdef ESP_PLATFORM
return ps_realloc(ptr, nsize);
#else
return realloc(ptr, nsize);
#endif
}
else
{
// Allocate or resize the block
#ifdef ESP32
return ps_realloc(ptr, nsize);
#else
return realloc(ptr, nsize);
#endif
}
}

Expand Down
1 change: 1 addition & 0 deletions lib/system/libsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void libsystem::panic(const std::string &message, const bool restart) {

// Backtrace

// backtrace_saver::re_restart_debug_t backtraceData = backtrace_saver::getCurrentBacktrace();
std::string fullBacktraceData;

std::cerr << "Backtrace:" << std::endl;
Expand Down

0 comments on commit 98d2aa8

Please sign in to comment.