From 15de07ff74e610510f724cca9c6d155ef376d68a Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 30 Jan 2013 08:31:32 +0100 Subject: HOPKINS: Introduce MKTAG24. Make use of MKTAG16 and MKTAG24 --- engines/hopkins/hopkins.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/hopkins/hopkins.h') diff --git a/engines/hopkins/hopkins.h b/engines/hopkins/hopkins.h index 4ab356be9a..04b3558963 100644 --- a/engines/hopkins/hopkins.h +++ b/engines/hopkins/hopkins.h @@ -75,6 +75,12 @@ enum { #define MAX_LINES 400 +/** + * A wrapper macro used around three character constants, like 'END', to + * ensure portability. Typical usage: MKTAG24('E','N','D'). + */ +#define MKTAG24(a0,a1,a2) ((uint32)((a2) | (a1) << 8 | ((a0) << 16))) + struct HopkinsGameDescription; class HopkinsEngine : public Engine { -- cgit v1.2.3