diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-02 13:23:18 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-02 13:23:18 -0500 |
| commit | b78c91951a1db34c615a011e0444608285f1a74c (patch) | |
| tree | 2cae0609ec2670a4a1e1adb7905ae495abc9a238 /src/codegen.cpp | |
| parent | cd08c1f3be278366ee69c3cf4ab1091eb884e264 (diff) | |
| download | zig-b78c91951a1db34c615a011e0444608285f1a74c.tar.gz zig-b78c91951a1db34c615a011e0444608285f1a74c.zip | |
remove ability to mark if and switch as inline
if and switch are implicitly inline if the condition/target
expression is known at compile time.
instead of:
```
inline if (condition) ...
inline switch (target) ...
```
one can use:
```
if (comptime condition) ...
switch (comptime target) ...
```
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
