extlog 0.1.12

Rust Extension log for commandline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use winapi::um::{debugapi};
use super::wchar_windows;


pub fn win_output_debug(s :&str) {
	let wso : Option<Box<[u16]>> =  wchar_windows::str_to_c_wstr(s);
	if wso.is_none() {
		return;
	}
	let ws = wso.unwrap();

    unsafe {
        debugapi::OutputDebugStringW(ws.as_ptr());
    }
    return;
}