| 58 | } |
| 59 | |
| 60 | void* Tests::FindVar(const char* name) |
| 61 | { |
| 62 | for(unsigned int i = 0; i < variableCount; i++) |
| 63 | { |
| 64 | if(strcmp(name, symbols + varInfo[i].offsetToName) == 0) |
| 65 | return (void*)(varData + varInfo[i].offset); |
| 66 | } |
| 67 | return (void*)varData; |
| 68 | } |
| 69 | |
| 70 | bool Tests::RunCode(const char *code, unsigned int executor, const char* expected, const char* message, bool execShouldFail) |
| 71 | { |