Make test program work with new debugging checks

This commit is contained in:
Michael Theall 2018-09-20 23:47:35 -05:00
parent 888569bba1
commit 6298be6420
4 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,12 @@
*/
#pragma once
#ifdef _3DS
#include <3ds/synchronization.h>
#else
#include <pthread.h>
#endif
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>

View File

@ -1,4 +1,5 @@
#include <3ds/util/rbtree.h>
#include <3ds/svc.h>
#include "rbtree_internal.h"
static void

View File

@ -4,7 +4,12 @@ CXXFILES := $(wildcard *.cpp)
OFILES := $(patsubst ../%,%,$(CFILES:.c=.c.o))
OXXFILES := $(CXXFILES:.cpp=.cpp.o)
CPPFLAGS := -Wall -g -I../../../../include -O2
CPPFLAGS := -Wall -g -I../../../../include -O2 \
-D"LightLock=pthread_mutex_t" \
-D"LightLock_Init(x)=pthread_mutex_init(x, NULL)" \
-D"LightLock_Lock(x)=pthread_mutex_lock(x)" \
-D"LightLock_Unlock(x)=pthread_mutex_unlock(x)"
CFLAGS := $(CPPFLAGS)
CXXFLAGS := $(CPPFLAGS) -std=c++11

View File

@ -76,6 +76,7 @@ void printTree(const rbtree_t *tree)
void svcBreak(UserBreakType breakReason)
{
std::abort();
}
int main(int argc, char *argv[])