diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/PS3/Assert | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/PS3/Assert')
| -rw-r--r-- | Minecraft.Client/PS3/Assert/assert.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Minecraft.Client/PS3/Assert/assert.h b/Minecraft.Client/PS3/Assert/assert.h new file mode 100644 index 00000000..7319f2a4 --- /dev/null +++ b/Minecraft.Client/PS3/Assert/assert.h @@ -0,0 +1,17 @@ + +#pragma once +#include <stdio.h> +#include <libsn.h> + +#ifdef _CONTENT_PACKAGE +#define PS3_ASSERT(val) +#define PS3_ASSERT_CELL_ERROR(errVal) +#elif defined(_RELEASE_FOR_ART) +#define PS3_ASSERT(val) +#define PS3_ASSERT_CELL_ERROR(errVal) +#else +#define PS3_ASSERT(val) if(!(val)) { printf("----------------------\n"); printf("Assert failed!!!\n"); printf(#val); printf("\n"); printf("%s failed.\nFile %s\nline %d \n----------------------\n", __FUNCTION__, __FILE__, __LINE__); snPause(); } +#define PS3_ASSERT_CELL_ERROR(errVal) if(errVal != CELL_OK) { printf("----------------------\n %s failed with error %d [0x%08x]\n----------------------\n", __FUNCTION__, errVal, errVal); PS3_ASSERT(0); } +#endif + +#define assert PS3_ASSERT |
