diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-09-21 03:37:45 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-09-21 03:37:45 +0200 |
commit | 14d90c9e1171655b864316c9c4aa34033fdd3a45 (patch) | |
tree | 3c297e80f774b4a6452331ff840fe6c415875e11 /Database/database-types.h | |
parent | 8c9c24358cca81cdb15462cb74afc5f173966c79 (diff) |
Very first bit towards a Mips/PSX disassembler
Diffstat (limited to 'Database/database-types.h')
-rw-r--r-- | Database/database-types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Database/database-types.h b/Database/database-types.h index 49db9b8..8ea61e6 100644 --- a/Database/database-types.h +++ b/Database/database-types.h @@ -40,6 +40,7 @@ typedef union { static inline Uint32 SEGID(absolute_ptr ptr) { return ptr.segment_id; } static inline Uint32 SEGOFFSET(absolute_ptr ptr) { return ptr.ptr; } +static inline absolute_ptr ABSPTR(Uint32 id, Uint32 ptr) { absolute_ptr r; r.segment_id = id; r.ptr = ptr; return r; } /** A function description. */ |