working return integer tests as part of gtest

This commit is contained in:
water
2020-09-06 16:58:25 -04:00
parent 8bf0bd86d3
commit d49b01e310
36 changed files with 648 additions and 266 deletions
@@ -1,11 +1,12 @@
#include "goalc/compiler/Compiler.h"
#include "goalc/compiler/IR.h"
Val * Compiler::compile_exit(const goos::Object& form, const goos::Object& rest, Env* env) {
Val* Compiler::compile_exit(const goos::Object& form, const goos::Object& rest, Env* env) {
(void)env;
auto args = get_va(form, rest);
va_check(form, args, {}, {});
if(m_listener.is_connected()) {
m_listener.send_reset();
if (m_listener.is_connected()) {
m_listener.send_reset(false);
}
m_want_exit = true;
return get_none();