diff options
| author | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-02-20 12:31:31 +0100 |
|---|---|---|
| committer | spicyjpeg <88942473+spicyjpeg@users.noreply.github.com> | 2022-02-20 12:31:31 +0100 |
| commit | 72db767f5a5bdb958bb11bcb6fe6b9b332a2b195 (patch) | |
| tree | af217b41f42f78180b821e682c54f60ab0f3dd78 /libpsn00b/include/dlfcn.h | |
| parent | aca79b2a75c9a6106bc0047f767a475a2c3aaf8e (diff) | |
| download | psn00bsdk-72db767f5a5bdb958bb11bcb6fe6b9b332a2b195.tar.gz | |
Rewrite assert() and DL_CALL(), update mkpsxiso
Diffstat (limited to 'libpsn00b/include/dlfcn.h')
| -rw-r--r-- | libpsn00b/include/dlfcn.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libpsn00b/include/dlfcn.h b/libpsn00b/include/dlfcn.h index 6874d06..5848a95 100644 --- a/libpsn00b/include/dlfcn.h +++ b/libpsn00b/include/dlfcn.h @@ -1,19 +1,18 @@ /* * PSn00bSDK dynamic linker - * (C) 2021 spicyjpeg - MPL licensed + * (C) 2021-2022 spicyjpeg - MPL licensed */ #ifndef __DLFCN_H #define __DLFCN_H -#include <sys/types.h> +#include <stdint.h> #include <elf.h> /* Helper macro for setting $t9 before calling a function */ -#define DL_CALL(func, ...) { \ +#define DL_PRE_CALL(func) { \ __asm__ volatile("move $t9, %0;" :: "r"(func) : "$t9"); \ - func(__VA_ARGS__); \ } /* Types */ |
