equal
deleted
inserted
replaced
77 #define uint32 unsigned int |
77 #define uint32 unsigned int |
78 #define uint unsigned int |
78 #define uint unsigned int |
79 |
79 |
80 // Macros |
80 // Macros |
81 // Debugging note: Put a breakpoint on "abort". |
81 // Debugging note: Put a breakpoint on "abort". |
|
82 #undef assert |
82 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} |
83 #define assert(cond, msg) { if (!(cond)) { fprintf(stderr, "assert fails %s %d: %s\n", __FILE__, __LINE__, msg); abort(); }} |
83 #define max(a, b) (((a)>(b)) ? (a) : (b)) |
84 #define max(a, b) (((a)>(b)) ? (a) : (b)) |
84 |
85 |
85 // VM components |
86 // VM components |
86 #include "opcodes.hpp" |
87 #include "opcodes.hpp" |