diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-02-08 20:06:19 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-02-10 02:15:06 +0000 |
commit | 8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97 (patch) | |
tree | 8b06996918772463af5993927d07726b6244b321 /src/rust/tor_rust | |
parent | 45c59eff6c0b261d1f868eb22e0bd36a39dfdbb3 (diff) | |
download | tor-8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97.tar.gz tor-8fff331bb095dc6f5e2fe2ecfc9ab08ea9e2fe97.zip |
rust: Add macro for passing static borrowed strings from Rust to C.
* ADD a new macro, tor_util::string::cstr!() which takes Rust strings,
concatenates them together, appends a NUL byte, and converts it into a
std::ffi::CStr for handing to C.
Diffstat (limited to 'src/rust/tor_rust')
0 files changed, 0 insertions, 0 deletions