Use cxx_name

This commit is contained in:
topjohnwu 2023-08-24 00:50:38 -07:00
parent 0ba573b789
commit 0c28a916be

View File

@ -32,8 +32,8 @@ pub mod ffi {
} }
extern "Rust" { extern "Rust" {
#[rust_name = "log_from_cxx"] #[cxx_name = "log_with_rs"]
fn log_with_rs(level: LogLevel, msg: &[u8]); fn log_from_cxx(level: LogLevel, msg: &[u8]);
fn exit_on_error(b: bool); fn exit_on_error(b: bool);
fn set_log_level_state(level: LogLevel, enabled: bool); fn set_log_level_state(level: LogLevel, enabled: bool);
fn cmdline_logging(); fn cmdline_logging();