| 1 | // LAF Base Library |
| 2 | // Copyright (c) 2001-2016 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef BASE_MEMORY_H_INCLUDED |
| 8 | #define BASE_MEMORY_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include <cstddef> |
| 12 | |
| 13 | void* base_malloc (std::size_t bytes); |
| 14 | void* base_malloc0(std::size_t bytes); |
| 15 | void* base_realloc(void* mem, std::size_t bytes); |
| 16 | void base_free (void* mem); |
| 17 | char* base_strdup (const char* string); |
| 18 | |
| 19 | #ifdef LAF_MEMLEAK |
| 20 | void base_memleak_init(); |
| 21 | void base_memleak_exit(); |
| 22 | #endif |
| 23 | |
| 24 | #endif |
| 25 | |