From 1f7ca9fd3964481318bbaddfb39acc5de8c7d65d Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 20 Sep 2009 23:10:31 +0200 Subject: Basic makefile structure; making the project at least compilable. --- Database/database-types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Database/database-types.h') diff --git a/Database/database-types.h b/Database/database-types.h index 7d92f87..49db9b8 100644 --- a/Database/database-types.h +++ b/Database/database-types.h @@ -1,6 +1,8 @@ #ifndef __DATABASE_TYPES_H__ #define __DATABASE_TYPES_H__ +#include + /** The basic tags that describe the bytes of the database. The tag "CODE_FIRST_BYTE" is * mainly for multi-bytes instructions, in order to help the UI displaying * properly the instructions. @@ -36,6 +38,9 @@ typedef union { }; } absolute_ptr; +static inline Uint32 SEGID(absolute_ptr ptr) { return ptr.segment_id; } +static inline Uint32 SEGOFFSET(absolute_ptr ptr) { return ptr.ptr; } + /** A function description. */ -- cgit v1.2.3