/* Copyright (c) 2013-2014 Jeffrey Pfau
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "util/memory.h"

void* anonymousMemoryMap(size_t size) {
	return malloc(size);
}

void mappedMemoryFree(void* memory, size_t size) {
	free(memory);
}

/* Copyright (c) 2013-2014 Jeffrey Pfau
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "util/memory.h"

#include <3ds.h>

void* anonymousMemoryMap(size_t size) {
	return linearAlloc(size);
}

void mappedMemoryFree(void* memory, size_t size) {
	UNUSED(size);
	linearFree(memory);
}

Use linearAlloc instead of malloc
3DS: Use linearAlloc instead of malloc
