mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
parent
64a63e0861
commit
b5e1e05ef2
1439 changed files with 1 additions and 34187 deletions
|
@ -46,13 +46,11 @@ size_t MemoryPool::total_memory = 0;
|
|||
size_t MemoryPool::max_memory = 0;
|
||||
|
||||
void MemoryPool::setup(uint32_t p_max_allocs) {
|
||||
|
||||
allocs = memnew_arr(Alloc, p_max_allocs);
|
||||
alloc_count = p_max_allocs;
|
||||
allocs_used = 0;
|
||||
|
||||
for (uint32_t i = 0; i < alloc_count - 1; i++) {
|
||||
|
||||
allocs[i].free_list = &allocs[i + 1];
|
||||
}
|
||||
|
||||
|
@ -60,7 +58,6 @@ void MemoryPool::setup(uint32_t p_max_allocs) {
|
|||
}
|
||||
|
||||
void MemoryPool::cleanup() {
|
||||
|
||||
memdelete_arr(allocs);
|
||||
|
||||
ERR_FAIL_COND_MSG(allocs_used > 0, "There are still MemoryPool allocs in use at exit!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue