feat(profile): add model related info

This commit is contained in:
phaneron 2024-11-01 03:54:09 -04:00
parent 156b0e0a0b
commit 2b598e6dd1
62 changed files with 25665 additions and 8034 deletions

View file

@ -2,9 +2,7 @@
#define SYSTEM_DETECT_H
#if !defined(IDA) && !defined(GHIDRA) && !defined(BINANA_GENERATOR)
#error "Preprocessor mode not detected! You must define either IDA or GHIDRA or BINANA_GENERATOR"
#endif
#if defined(IDA)
@ -20,4 +18,4 @@
#define DECLARE_STRUCT(T) typedef struct T T
#endif
#endif

View file

@ -0,0 +1,6 @@
#ifndef SYSTEM_LIMITS_H
#define SYSTEM_LIMITS_H
#define INT_MAX 2147483647
#endif

View file

@ -37,4 +37,41 @@ typedef char bool;
#endif
// stddef
#if defined(GHIDRA)
#include <stddef.h>
#else
typedef uint32_t size_t;
#endif
// stdarg
#if defined(GHIDRA)
#include <stdarg.h>
#else
typedef char* va_list;
#endif
// other types
typedef struct fixed16 fixed16;
struct fixed16 {
int16_t n;
};
struct ubyte4 {
union {
uint8_t b[4];
uint32_t u;
};
};
#endif