#include <iostream>
#include <cassert>
#include "vm.h"
#include "common.h"
#include "compile.h"
Go to the source code of this file.
Value:
RuntimeError("Operands must be both integers or both numbers."); \
} \
} while (false)
#define IS_INTEGER(value)
then if[["$THISISATEST"==1]]
#define NUMBER_VAL(value)
#define INTEGER_VAL(value)
#define AS_INTEGER(value)
Value:
RuntimeError("Operands must be both integers or both numbers."); \
} \
} while (false)
#define IS_INTEGER(value)
then if[["$THISISATEST"==1]]
#define AS_INTEGER(value)
#define READ_SHORT |
( |
| ) |
(ip += 2, (uint16_t)((chunk->code[ip-2] << 8) | chunk->code[ip-1])) |
#define READ_STRING |
( |
| ) |
AS_CSTRING(ReadConstant()) |
Definition at line 48 of file vm.cc.
49 if (a.
val != b.
val)
return false;
#define AS_CSTRING(value)
#define AS_INTEGER(value)