1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Implement #include keyword with advanced checks and backtrace

This commit is contained in:
starlightduck 2022-05-12 12:54:34 +03:00
parent 1e0b587023
commit 9356a16b84
7 changed files with 113 additions and 9 deletions

14
crypto/func/test/i1.fc Normal file
View file

@ -0,0 +1,14 @@
global int i;
#include "i1sub1.fc";
() sub0() impure { i = 0; }
#include "i1sub2.fc";
() main() impure {
sub0();
sub1();
sub2();
i = 9;
}

View file

@ -0,0 +1,6 @@
;; DO NOT COMPILE DIRECTLY!
;; Compile i1.fc
() sub1() impure {
i = 1;
}

View file

@ -0,0 +1,8 @@
;; DO NOT COMPILE DIRECTLY!
;; Compile i1.fc
() sub2() impure {
sub1();
sub0();
i = 2;
}