Make test program work with new debugging checks
This commit is contained in:
parent
888569bba1
commit
6298be6420
@ -4,7 +4,12 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef _3DS
|
||||||
#include <3ds/synchronization.h>
|
#include <3ds/synchronization.h>
|
||||||
|
#else
|
||||||
|
#include <pthread.h>
|
||||||
|
#endif
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <3ds/util/rbtree.h>
|
#include <3ds/util/rbtree.h>
|
||||||
|
#include <3ds/svc.h>
|
||||||
#include "rbtree_internal.h"
|
#include "rbtree_internal.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -4,7 +4,12 @@ CXXFILES := $(wildcard *.cpp)
|
|||||||
OFILES := $(patsubst ../%,%,$(CFILES:.c=.c.o))
|
OFILES := $(patsubst ../%,%,$(CFILES:.c=.c.o))
|
||||||
OXXFILES := $(CXXFILES:.cpp=.cpp.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)
|
CFLAGS := $(CPPFLAGS)
|
||||||
CXXFLAGS := $(CPPFLAGS) -std=c++11
|
CXXFLAGS := $(CPPFLAGS) -std=c++11
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@ void printTree(const rbtree_t *tree)
|
|||||||
|
|
||||||
void svcBreak(UserBreakType breakReason)
|
void svcBreak(UserBreakType breakReason)
|
||||||
{
|
{
|
||||||
|
std::abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user