macros.hpp File Reference

Go to the source code of this file.

Defines

#define CONC(a, b)   a##b
#define CONC3(a, b, c)   a##b##c
#define STR(a)   #a
#define CHAR(a)   ((#a)[0])
#define XCONC(a, b)   CONC(a,b)
#define XSTR(a)   STR(a)
#define XCHAR(a)   CHAR(a)
#define CHECKOOPTYPE(ref, typePredicate, newType, newRef)
#define CHECKOOPSMI(ref, val)
#define CHECKOOPBOOL(ref, val)


Define Documentation

#define CHAR (  )     ((#a)[0])

Definition at line 37 of file macros.hpp.

#define CHECKOOPBOOL ( ref,
val   ) 

Value:

bool val;                                                                 \
    if (ref == falseObj)                                              \
      val = false;                                                            \
    else if (ref == trueObj)                                          \
      val = true;                                                             \
    else                                                                      \
      return prim_error(BADTYPEERROR);

Definition at line 67 of file macros.hpp.

#define CHECKOOPSMI ( ref,
val   ) 

Value:

if (!ref->is_smi())                                                       \
      return prim_error(BADTYPEERROR);                                        \
    smi val = smiOop(ref)->value();

Definition at line 59 of file macros.hpp.

#define CHECKOOPTYPE ( ref,
typePredicate,
newType,
newRef   ) 

Value:

if (!ref->typePredicate())                                                \
      return prim_error(BADTYPEERROR);                                        \
    newType newRef = newType(ref);

Definition at line 51 of file macros.hpp.

#define CONC ( a,
 )     a##b

Definition at line 34 of file macros.hpp.

#define CONC3 ( a,
b,
 )     a##b##c

Definition at line 35 of file macros.hpp.

#define STR (  )     #a

Definition at line 36 of file macros.hpp.

#define XCHAR (  )     CHAR(a)

Definition at line 41 of file macros.hpp.

#define XCONC ( a,
 )     CONC(a,b)

Definition at line 39 of file macros.hpp.

#define XSTR (  )     STR(a)

Definition at line 40 of file macros.hpp.


Generated on Mon Oct 9 13:41:56 2006 for Strongtalk VM by  doxygen 1.4.7