[nostalgia/core/gba][ox/std] Move heap manager from NostalgiaCore to OxStd

This commit is contained in:
2020-05-29 19:36:00 -05:00
parent 0eb33f823c
commit 98a0c42040
11 changed files with 108 additions and 74 deletions

View File

@@ -5,6 +5,7 @@
* 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 <iostream>
#include <map>
#include <functional>
@@ -13,6 +14,16 @@
using namespace std;
map<string, function<int()>> tests = {
{
"malloc",
[] {
std::vector<char> buff(ox::units::MB);
ox::heapmgr::initHeap(&buff.front(), &buff.back());
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
return 0;
}
},
{
"ABCDEFG != HIJKLMN",
[]() {