[goalc] macro expansion in integer constants (#1282)

* [goalc] macro expansion in integer constants

* working

* didn't break it yet

* support conditional compilation

* fix up some more small bugs

* fix duplicate evaluation of bitfield definitions

* paranoid
This commit is contained in:
water111
2022-04-07 19:13:22 -04:00
committed by GitHub
parent 2caf75a11c
commit 1db96c72ab
25 changed files with 501 additions and 241 deletions
-11
View File
@@ -404,17 +404,6 @@ TEST(GoosBuiltins, Null) {
}
}
TEST(GoosBuiltins, CurrentMethodType) {
Interpreter i;
i.goal_to_goos.enclosing_method_type = "test-type";
EXPECT_EQ(e(i, "(current-method-type)"), "test-type");
i.disable_printfs();
for (auto x : {"(current-method-type 1)"}) {
EXPECT_ANY_THROW(e(i, x));
}
}
TEST(GoosBuiltins, Type) {
Interpreter i;
EXPECT_EQ(e(i, "(type? 'empty-list '())"), "#t");