diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-23 13:37:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 13:37:07 +0000 |
commit | bf92a1012264f2544e73a7a8dd0ac1e473c7f658 (patch) | |
tree | f7a3fd3afb0c2e2b2678d80dcd742da23c1b8f9a /gcc/rust/backend/rust-compile-expr.h | |
parent | 10de9cf4f3765526a1a82a4a7d14908b58c6538c (diff) | |
parent | 48b3fe622e9a582b076c6f4b19b5e8b69891ac31 (diff) | |
download | gcc-bf92a1012264f2544e73a7a8dd0ac1e473c7f658.zip gcc-bf92a1012264f2544e73a7a8dd0ac1e473c7f658.tar.gz gcc-bf92a1012264f2544e73a7a8dd0ac1e473c7f658.tar.bz2 |
Merge #969
969: Add builtin macros framework r=CohenArthur a=CohenArthur
This PR adds bases to define new builtin macro functions.
Since we operate at the `insert_macro_def` level, this requires builtin macros to be defined, as is the case in the rust standard library:
```rust
macro_rules! assert {
($cond:expr $(,)?) => {{ /* compiler built-in */ }};
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};
}
```
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions