added clangd and modified debug code

This commit is contained in:
Samuel Walker 2025-03-27 19:00:35 -06:00
parent de285d7dbe
commit 3a17490fb0
3 changed files with 8 additions and 6 deletions

2
.clangd Normal file
View File

@ -0,0 +1,2 @@
CompileFlags:
Remove: [-G]

3
.gitignore vendored
View File

@ -1 +1,2 @@
build/
build/
.cache/

9
main.c
View File

@ -1,14 +1,13 @@
#include <stdio.h>
#include <tamtypes.h>
#include <sifrpc.h>
#include <debug.h>
#include <unistd.h>
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;