cen64/os/common/alloc.h
Derek "Turtle" Roe 8b89df2fdc See long description
Replaced all references to simulation with emulation
Updated copyright year
Updated .gitignore to reduce chances of random files being uploaded to
the repo
Added .gitattributes to normalize all text files, and to ignore binary
files (which includes the logo and the NEC PDF)
2015-07-01 18:44:21 -05:00

27 lines
615 B
C

//
// os/common/alloc.h: Low-level allocators.
//
// CEN64: Cycle-Accurate Nintendo 64 Emulator.
// Copyright (C) 2015, Tyler J. Stachecki.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#ifndef CEN64_OS_COMMON_ALLOC
#define CEN64_OS_COMMON_ALLOC
#include "common.h"
struct cen64_mem {
size_t size;
void *ptr;
};
cen64_cold void cen64_alloc_cleanup(void);
cen64_cold int cen64_alloc_init(void);
cen64_cold void *cen64_alloc(struct cen64_mem *m, size_t size, bool exec);
cen64_cold void cen64_free(struct cen64_mem *m);
#endif