Files @ 3dc3c63ab47f
Branch filter:

Location: CSY/reowolf/src/macros.rs

3dc3c63ab47f 386 B application/rls-services+xml Show Annotation Show as Raw Download as Raw
Christopher Esterhuyse
added hierarchal structure to connector fields such that fewer pointers to larger sub-structures must be passed around in tight loops of communication phase. Eg: NonSyncContext and SyncContext have shrunk substantially
macro_rules! endptlog {
    ($logger:expr, $($arg:tt)*) => {{
    	if cfg!(feature = "endpoint_logging") {
	        if let Some(w) = $logger.line_writer() {
	        	let _ = writeln!(w, $($arg)*);
	        }
	    }
    }};
}
macro_rules! log {
    ($logger:expr, $($arg:tt)*) => {{
    	if let Some(w) = $logger.line_writer() {
        	let _ = writeln!(w, $($arg)*);
    	}
    }};
}