simple_message_box/lib.rs
1#[cfg(target_os = "windows")]
2#[path = "windows.rs"]
3mod message_box_impl;
4
5#[cfg(target_os = "linux")]
6#[path = "linux.rs"]
7mod message_box_impl;
8
9#[cfg(not(any(target_os = "linux", target_os = "windows")))]
10mod message_box_impl {
11 pub(crate) fn create_message_box_impl(_: &str, _: &str) {}
12}
13
14/// Create a message box with the given message and title.
15pub fn create_message_box(message: &str, title: &str) {
16 message_box_impl::create_message_box_impl(message, title);
17}