Make test program work with new debugging checks
This commit is contained in:
parent
888569bba1
commit
6298be6420
@ -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>
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <3ds/util/rbtree.h>
|
||||
#include <3ds/svc.h>
|
||||
#include "rbtree_internal.h"
|
||||
|
||||
static void
|
||||
|
@ -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
|
||||
|
||||
|
@ -76,6 +76,7 @@ void printTree(const rbtree_t *tree)
|
||||
|
||||
void svcBreak(UserBreakType breakReason)
|
||||
{
|
||||
std::abort();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
Loading…
Reference in New Issue
Block a user