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:
parent
1e0b587023
commit
9356a16b84
7 changed files with 113 additions and 9 deletions
14
crypto/func/test/i1.fc
Normal file
14
crypto/func/test/i1.fc
Normal 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;
|
||||
}
|
6
crypto/func/test/i1sub1.fc
Normal file
6
crypto/func/test/i1sub1.fc
Normal file
|
@ -0,0 +1,6 @@
|
|||
;; DO NOT COMPILE DIRECTLY!
|
||||
;; Compile i1.fc
|
||||
|
||||
() sub1() impure {
|
||||
i = 1;
|
||||
}
|
8
crypto/func/test/i1sub2.fc
Normal file
8
crypto/func/test/i1sub2.fc
Normal file
|
@ -0,0 +1,8 @@
|
|||
;; DO NOT COMPILE DIRECTLY!
|
||||
;; Compile i1.fc
|
||||
|
||||
() sub2() impure {
|
||||
sub1();
|
||||
sub0();
|
||||
i = 2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue