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

[FunC] Deprecate pragma allow-post-modification

All tests pass: it does not affect hashes (since modifying
variables in a single expression was an error)
This commit is contained in:
Aleksandr Kirsanov 2024-05-10 15:56:11 +03:00
parent bb86dc0f96
commit aaf3ca335d
No known key found for this signature in database
GPG key ID: B758BBAA01FFB3D3
5 changed files with 12 additions and 27 deletions

View file

@ -347,6 +347,7 @@ int func_proceed(const std::vector<std::string> &sources, std::ostream &outs, st
funC::define_keywords();
funC::define_builtins();
pragma_allow_post_modification.always_on_and_deprecated("0.5.0");
int ok = 0, proc = 0;
try {
@ -365,7 +366,6 @@ int func_proceed(const std::vector<std::string> &sources, std::ostream &outs, st
if (!proc) {
throw src::Fatal{"no source files, no output"};
}
pragma_allow_post_modification.check_enable_in_libs();
pragma_compute_asm_ltr.check_enable_in_libs();
pragma_remove_unused_functions.check_enable_in_libs();
return funC::generate_output(outs, errs);