added clangd and modified debug code
This commit is contained in:
parent
de285d7dbe
commit
3a17490fb0
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
build/
|
||||
build/
|
||||
.cache/
|
9
main.c
9
main.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user