From b6a8c8330adcca5c4e8e4b0edfa91587daf3d3fa Mon Sep 17 00:00:00 2001 From: jjenista Date: Thu, 21 Apr 2011 00:08:03 +0000 Subject: [PATCH] better implementation of this --- Robust/src/Runtime/mlp_runtime.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Robust/src/Runtime/mlp_runtime.h b/Robust/src/Runtime/mlp_runtime.h index 8c2b9d73..3f140928 100644 --- a/Robust/src/Runtime/mlp_runtime.h +++ b/Robust/src/Runtime/mlp_runtime.h @@ -15,6 +15,9 @@ #include "memPool.h" +#include "classdefs.h" + + #ifndef FALSE #define FALSE 0 @@ -60,10 +63,10 @@ // these are useful for interpreting an INTPTR to an // Object at runtime to retrieve the object's type -// or object id (OID), 64-bit safe -#define OBJPTRPTR_2_OBJTYPE( opp ) ((int*)*(opp))[0] -// int hashcode is the [1] NOW!!! -#define OBJPTRPTR_2_OBJOID( opp ) ((int*)*(opp))[2] +// or object id (OID) +#define OBJPTRPTR_2_OBJTYPE( opp ) ((struct ___Object___*)*(opp))->type +#define OBJPTRPTR_2_OBJOID( opp ) ((struct ___Object___*)*(opp))->oid + // forwarding list elements is a linked // structure of arrays, should help task -- 2.34.1