diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-04 10:44:51 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-04 10:44:51 -0400 |
commit | cd2199b424fa0c7f724e2a7b771ed3e0f9b90e07 (patch) | |
tree | 0c85cbdcccd4c0889c94f91dbfb8dd21cdf8ab13 | |
parent | b20ccd6bafaa12acacff8b75a666d3ac51eda371 (diff) |
found a bug: f(f(x))
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | test.toc | 7 |
2 files changed, 9 insertions, 2 deletions
@@ -8,6 +8,8 @@ /* @TODO: +fix puti(puti(x)) +win64 #foreign allow #include "foo.toc", foo; #include "foo.toc", foo; @@ -24,7 +26,7 @@ enums unions bitwise operations --- -either detect circular #includes or set a #include limit (maybe sometimes you want finite circular includes with #if) +either detect circular #includes or set a #include depth limit (maybe sometimes you want finite circular includes with #if) switch to / add as an alternative: libffi - better yet, inline assembly don't bother generating ret_ if nothing's deferred @@ -1,4 +1,9 @@ +foo ::= fn(x: int) int { + 2*x +} + main ::=fn(){ + foo(foo(10)); - yeoop #C 3; } +main(); |