mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[FunC] Make all functions impure by default, add "pure" specifier
This commit is contained in:
parent
a3e9e03019
commit
85c60d1263
61 changed files with 3511 additions and 3500 deletions
|
@ -21,13 +21,13 @@ int parse_work_addr(slice cs) {
|
|||
;; Custom Commands
|
||||
;;
|
||||
|
||||
(int) equal_slices (slice s1, slice s2) asm "SDEQ";
|
||||
builder store_builder(builder to, builder what) asm(what to) "STB";
|
||||
builder store_builder_ref(builder to, builder what) asm(what to) "STBREFR";
|
||||
(slice, cell) load_maybe_cell(slice s) asm( -> 1 0) "LDDICT";
|
||||
(int) mod (int x, int y) asm "MOD";
|
||||
builder store_coins(builder b, int x) asm "STGRAMS";
|
||||
(slice, int) load_coins(slice s) asm( -> 1 0) "LDGRAMS";
|
||||
(int) equal_slices (slice s1, slice s2) pure asm "SDEQ";
|
||||
builder store_builder(builder to, builder what) pure asm(what to) "STB";
|
||||
builder store_builder_ref(builder to, builder what) pure asm(what to) "STBREFR";
|
||||
(slice, cell) load_maybe_cell(slice s) pure asm( -> 1 0) "LDDICT";
|
||||
(int) mod (int x, int y) pure asm "MOD";
|
||||
builder store_coins(builder b, int x) pure asm "STGRAMS";
|
||||
(slice, int) load_coins(slice s) pure asm( -> 1 0) "LDGRAMS";
|
||||
|
||||
|
||||
;;
|
||||
|
@ -182,4 +182,4 @@ builder store_withdraw_delayed(builder b) inline {
|
|||
.store_uint(555062058613674355757418046597367430905687018487295295368960255172568430, 240) ;; 'Please, retry the command when'
|
||||
.store_text_space()
|
||||
.store_uint(45434371896731988359547695118970428857702208118225198, 176); ;; 'your balance is ready.'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue