mirror of
https://github.com/n64dev/cen64.git
synced 2025-04-02 10:31:54 -04:00
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)
27 lines
615 B
C
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
|
|
|