mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
a5caf7ca99
I know I'm praying for cargo here, but this does fix a weird issue where logging the sum_alloc and sum_free globals wouldn't display symmetric values all the time.
12 lines
289 B
C
12 lines
289 B
C
#pragma once
|
|
|
|
void kmalloc_init();
|
|
void *kmalloc(DWORD size) __attribute__ ((malloc));
|
|
void kfree(void*);
|
|
|
|
extern volatile DWORD sum_alloc;
|
|
extern volatile DWORD sum_free;
|
|
|
|
inline void* operator new(size_t, void* p) { return p; }
|
|
inline void* operator new[](size_t, void* p) { return p; }
|