aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/include/uhd/error.h b/host/include/uhd/error.h
index 77216dc72..5be04b7b4 100644
--- a/host/include/uhd/error.h
+++ b/host/include/uhd/error.h
@@ -87,7 +87,8 @@ typedef enum {
UHD_API uhd_error error_from_uhd_exception(const uhd::exception* e);
-UHD_API const std::string& get_c_global_error_string();
+//! Return a copy of the last error string.
+UHD_API std::string get_c_global_error_string();
UHD_API void set_c_global_error_string(const std::string &msg);