diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..5c9ebca --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + Remove: [-G] \ No newline at end of file diff --git a/.gitignore b/.gitignore index d163863..5b79a54 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -build/ \ No newline at end of file +build/ +.cache/ \ No newline at end of file diff --git a/main.c b/main.c index 17514ef..55b6ebd 100644 --- a/main.c +++ b/main.c @@ -1,14 +1,13 @@ -#include #include #include #include #include -void debug_msg(const char* msg) { #ifdef DEBUG - scr_printf(msg); +#define DEBUG_MSG(...) scr_printf(__VA_ARGS__) +#else +#define DEBUG_MSG(...) #endif -} @@ -17,7 +16,7 @@ int main() { sceSifInitRpc(0); init_scr(); #endif - debug_msg("Hello PS2!!!\n"); + DEBUG_MSG("Hello PS2!!!\n"); sleep(5); return 0;