Skip to content

Commit

Permalink
Adding deprecated comment for consteval_int! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerson2102 committed Nov 14, 2024
1 parent 35422d1 commit 6b23731
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ impl InlineMacroExprPlugin for ConstevalIntMacro {
Evaluates an integer expression at compile time.
The `consteval_int!` macro computes an integer expression \
during compilation and replaces itself with the computed value.
This macro is deprecated; use const expressions directly instead.
# Syntax
```cairo
Expand All @@ -82,8 +83,6 @@ impl InlineMacroExprPlugin for ConstevalIntMacro {
let x = consteval_int!(2 + 3); // Equivalent to: let x = 5;
let y = consteval_int!(4 * 5); // Equivalent to: let y = 20;
```
# Notes
- Useful for compile-time computations when const expressions were not fully supported.
"#}
.to_string(),
)
Expand Down

0 comments on commit 6b23731

Please sign in to comment.