Skip to content

Commit fa87534

Browse files
committed
Sync HashMap with upstream Godot. Add SortList and alloc_static_zeroed.
1 parent 7faf8b4 commit fa87534

4 files changed

Lines changed: 448 additions & 258 deletions

File tree

include/godot_cpp/core/memory.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ inline constexpr size_t ELEMENT_OFFSET = get_aligned_address(SIZE_OFFSET + sizeo
7171
inline constexpr size_t DATA_OFFSET = get_aligned_address(ELEMENT_OFFSET + sizeof(uint64_t), MAX_ALIGN);
7272

7373
void *alloc_static(size_t p_bytes, bool p_pad_align = false);
74+
void *alloc_static_zeroed(size_t p_bytes, bool p_pad_align = false);
7475
void *realloc_static(void *p_memory, size_t p_bytes, bool p_pad_align = false);
7576
void free_static(void *p_ptr, bool p_pad_align = false);
7677
}; //namespace Memory

0 commit comments

Comments
 (0)