diff options
Diffstat (limited to 'Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h')
| -rw-r--r-- | Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h b/Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h new file mode 100644 index 00000000..b4ff73bd --- /dev/null +++ b/Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h @@ -0,0 +1,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
\ No newline at end of file |
