diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-23 16:22:28 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-23 16:22:28 +0000 |
| commit | 533dde464848d8774e55e2fd9e267096c5af5d00 (patch) | |
| tree | 39a09ec5af5b178bb7f8c44daa66c3467decebaa /src/parser.cpp | |
| parent | 6988b12012bc90801d72ca175b628046fca95231 (diff) | |
Add deprecation message for `inline` and `no_inline` to use `#force_inline` and `#force_no_inline` instead
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 84987c51f..a60c5033d 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1850,8 +1850,10 @@ Ast *parse_force_inlining_operand(AstFile *f, Token token) { } ProcInlining pi = ProcInlining_none; if (token.kind == Token_inline) { + syntax_warning(token, "'inline' is deprecated in favour of '#force_inline'"); pi = ProcInlining_inline; } else if (token.kind == Token_no_inline) { + syntax_warning(token, "'no_inline' is deprecated in favour of '#force_no_inline'"); pi = ProcInlining_no_inline; } else if (token.kind == Token_Ident) { if (token.string == "force_inline") { |