Repository navigation
Commit 7fad448
Fix #731 (#if: an operator with a missing operand silently evaluates to false)
Report "invalid expression" when the #if expression can not be folded to a
single number. This also covers a missing operator ("1 2") and empty
parentheses ("()").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent a62b8ee commit 7fad448
2 files changed
Lines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3283 | 3283 | | |
3284 | 3284 | | |
3285 | 3285 | | |
3286 | | - | |
3287 | | - | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
3288 | 3289 | | |
3289 | 3290 | | |
3290 | 3291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
1845 | | - | |
| 1845 | + | |
| 1846 | + | |
1846 | 1847 | | |
1847 | 1848 | | |
1848 | 1849 | | |
| |||
2942 | 2943 | | |
2943 | 2944 | | |
2944 | 2945 | | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2945 | 2988 | | |
2946 | 2989 | | |
2947 | 2990 | | |
| |||
5180 | 5223 | | |
5181 | 5224 | | |
5182 | 5225 | | |
| 5226 | + | |
5183 | 5227 | | |
5184 | 5228 | | |
5185 | 5229 | | |
| |||
0 commit comments