1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

token: add @FILE_LEN (#15661)

This commit is contained in:
Seven Du
2022-09-05 22:00:35 +08:00
committed by GitHub
parent d0d5f1d4e0
commit 90c2c5b8a4
5 changed files with 14 additions and 2 deletions

View File

@ -5580,8 +5580,9 @@ that are substituted at compile time:
- `@METHOD` => replaced with ReceiverType.MethodName
- `@MOD` => replaced with the name of the current V module
- `@STRUCT` => replaced with the name of the current V struct
- `@FILE` => replaced with the path of the V source file
- `@FILE` => replaced with the absolute path of the V source file
- `@LINE` => replaced with the V line number where it appears (as a string).
- `@FILE_LINE` => like `@FILE:@LINE`, but the file part is a relative path
- `@COLUMN` => replaced with the column where it appears (as a string).
- `@VEXE` => replaced with the path to the V compiler
- `@VEXEROOT` => will be substituted with the *folder*,