the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1
2#pragma once
3#include <stdio.h>
4#include <libsn.h>
5
6#ifdef _CONTENT_PACKAGE
7#define PS3_ASSERT(val)
8#define PS3_ASSERT_CELL_ERROR(errVal)
9#elif defined(_RELEASE_FOR_ART)
10#define PS3_ASSERT(val)
11#define PS3_ASSERT_CELL_ERROR(errVal)
12#else
13#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(); }
14#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); }
15#endif
16
17#define assert PS3_ASSERT