ObjFW  Check-in [bd02f7426c]

Overview
Comment:Nintendo 3DS: Call gfxExit() at exit

Also reduce the TOO_BIG constant in OFObjectTests, as apparently passing
sizes >= 2^31 to malloc() or realloc() breaks everything in weird ways
on the Nintendo 3DS.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bd02f7426cfba5c2a25a0bbf7997ac7ffd9fdb17d47c870e4aafa135b300045d
User & Date: js on 2016-03-20 18:28:09
Other Links: manifest | tags
Context
2016-03-20
18:34
OFApplication: Clean up terminateWithStatus: check-in: 6d6069af92 user: js tags: trunk
18:28
Nintendo 3DS: Call gfxExit() at exit check-in: bd02f7426c user: js tags: trunk
15:24
OFHTTPServer: Delegate for client socket exception check-in: 3acdce88f5 user: js tags: trunk
Changes

Modified tests/OFObjectTests.m from [b1b6acb514] to [d9d6b32699].

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#import "OFAutoreleasePool.h"

#import "OFMemoryNotPartOfObjectException.h"
#import "OFOutOfMemoryException.h"

#import "TestsAppDelegate.h"

#if defined(OF_DRAGONFLYBSD) && defined(__LP64__)
# define TOO_BIG (SIZE_MAX / 3)
#else
# define TOO_BIG (SIZE_MAX - 128)
#endif

static OFString *module = @"OFObject";








|







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#import "OFAutoreleasePool.h"

#import "OFMemoryNotPartOfObjectException.h"
#import "OFOutOfMemoryException.h"

#import "TestsAppDelegate.h"

#if (defined(OF_DRAGONFLYBSD) && defined(__LP64__)) || defined(OF_NINTENDO_3DS)
# define TOO_BIG (SIZE_MAX / 3)
#else
# define TOO_BIG (SIZE_MAX - 128)
#endif

static OFString *module = @"OFObject";

Modified tests/TestsAppDelegate.m from [9043414018] to [a0e4ec5268].

131
132
133
134
135
136
137


138
139
140
141
142
143
144

#ifdef OF_NINTENDO_DS
	consoleDemoInit();
#endif

#ifdef OF_NINTENDO_3DS
	gfxInitDefault();


	consoleInit(GFX_TOP, NULL);
#endif

#if defined(OF_WII) || defined(OF_PSP) || defined(OF_NINTENDO_DS) || \
	defined(OF_NINTENDO_3DS)
	@try {
		return of_application_main(&argc, &argv,







>
>







131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146

#ifdef OF_NINTENDO_DS
	consoleDemoInit();
#endif

#ifdef OF_NINTENDO_3DS
	gfxInitDefault();
	atexit(gfxExit);

	consoleInit(GFX_TOP, NULL);
#endif

#if defined(OF_WII) || defined(OF_PSP) || defined(OF_NINTENDO_DS) || \
	defined(OF_NINTENDO_3DS)
	@try {
		return of_application_main(&argc, &argv,