aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h
blob: b4ff73bd70e2517c3f18b7ccabaa989a111c9b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once



#ifdef _CONTENT_PACKAGE

#define spu_assert(a)  {}
#define spu_print(...) {}

#else

#include <spu_printf.h>
#define spu_print spu_printf
#define spu_assert(a)	{ \
							if(!(a)) \
							{ \
							spu_printf(	"===================================\n" \
										"spu_assert : \t%s \n      Func : \t%s \n      File : \t%s \n      Line : \t%d\n" \
										"===================================\n", #a, __PRETTY_FUNCTION__, __FILE__, __LINE__); \
							si_stop(2); \
							} \
						}

#endif // _CONTENT_PACKAGE