1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-19 10:42:10 +00:00

Fix const functions of the form if c {return x} return y

This commit is contained in:
Karol Stasiak
2020-03-25 23:51:04 +01:00
parent 475496c137
commit e3d5ce4e81
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -80,6 +80,10 @@ Examples:
You can control inlining behavior in several ways:
* functions declared with the `const` keyword called with constant arguments will always be inlined,
with the whole invocation being converted into a single constant, regardless of `inline` and `noinline` keywords;
calls with non-constant arguments are subject to the regular rules.
* functions declared with the `inline` keyword will be inlined if possible
* functions declared with the `noinline` keyword will never be inlined