Skip to main content

SoapySDRDevice_lastError

Function SoapySDRDevice_lastError 

Source
pub unsafe extern "C" fn SoapySDRDevice_lastError() -> *const c_char
Expand description

Get the last error message after a device call fails.

When an device API call throws, the C bindings catch the exception, store its message in thread-safe storage, and return a non-zero status code to indicate failure. Use lastError() to access the exception’s error message.