all repos — mgba @ c732ea6a71d410b234ecf76e86c5e4d8bbd98e44

mGBA Game Boy Advance Emulator

src/platform/3ds/3ds-memory.c (view raw)

 1/* Copyright (c) 2013-2014 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#include "util/memory.h"
 7
 8#include <3ds.h>
 9
10void* anonymousMemoryMap(size_t size) {
11	return linearAlloc(size);
12}
13
14void mappedMemoryFree(void* memory, size_t size) {
15	UNUSED(size);
16	linearFree(memory);
17}