// LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.

#ifndef BASE_MEMORY_H_INCLUDED
#define BASE_MEMORY_H_INCLUDED
#pragma once

#include <cstddef>

void* base_malloc (std::size_t bytes);
void* base_malloc0(std::size_t bytes);
void* base_realloc(void* mem, std::size_t bytes);
void  base_free   (void* mem);
char* base_strdup (const char* string);

#ifdef LAF_MEMLEAK
void base_memleak_init();
void base_memleak_exit();
#endif

#endif
