diff options
| author | gingerBill <bill@gingerbill.org> | 2019-08-26 13:54:35 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-08-26 13:54:35 +0100 |
| commit | 01c10aa9447d135bdda5dc25583a5e1f94cbda6d (patch) | |
| tree | 10f37633b1cf71e8dcb29afb3418220e71daf733 /src/exact_value.cpp | |
| parent | 4908d1ebdd00a8822d9ef59245f2456db4b6dbfc (diff) | |
`inline for` loops (only for 'in' based for loops)
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 54d4ef6f2..fcc6f1973 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -813,6 +813,10 @@ gb_inline ExactValue exact_value_shift(TokenKind op, ExactValue const &x, ExactV return exact_binary_operator_value(op, x, y); } +gb_inline ExactValue exact_value_increment_one(ExactValue const &x) { + return exact_binary_operator_value(Token_Add, x, exact_value_i64(1)); +} + i32 cmp_f64(f64 a, f64 b) { return (a > b) - (a < b); |