| commit | 718e255f0a97cf43939ae2e90ba4673ae9a8bd2f | [log] [tgz] |
|---|---|---|
| author | Paolo Bonzini <pbonzini@redhat.com> | Fri Oct 25 08:23:53 2024 +0200 |
| committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Nov 05 14:18:16 2024 +0100 |
| tree | ab5d09e3b4cb9cae3e44fed6a8f77458f354c6c5 | |
| parent | 9f7d4520d679364f7ca95b7ddb899ff084e7d7c6 [diff] |
rust: introduce a c_str macro This allows CStr constants to be defined easily on Rust 1.63.0, while checking that there are no embedded NULs. c"" literals were only stabilized in Rust 1.77.0. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>