From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h (limited to 'Minecraft.Client/PS3/SPU_Tasks/Common/spu_assert.h') 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 +#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 -- cgit v1.2.3