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 CHAR | ( | a | ) | ((#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:
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, | |||
b | ) | a##b |
Definition at line 34 of file macros.hpp.
#define CONC3 | ( | a, | |||
b, | |||||
c | ) | a##b##c |
Definition at line 35 of file macros.hpp.
#define STR | ( | a | ) | #a |
Definition at line 36 of file macros.hpp.
#define XCHAR | ( | a | ) | CHAR(a) |
Definition at line 41 of file macros.hpp.
#define XCONC | ( | a, | |||
b | ) | CONC(a,b) |
Definition at line 39 of file macros.hpp.
#define XSTR | ( | a | ) | STR(a) |
Definition at line 40 of file macros.hpp.