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
13void* base_malloc (std::size_t bytes);
14void* base_malloc0(std::size_t bytes);
15void* base_realloc(void* mem, std::size_t bytes);
16void base_free (void* mem);
17char* base_strdup (const char* string);
18
19#ifdef LAF_MEMLEAK
20void base_memleak_init();
21void base_memleak_exit();
22#endif
23
24#endif
25