MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / register_global_error

Function register_global_error

lib/hidapi/mac/hid.c:259–262  ·  view source on GitHub ↗

Set the last global error to be reported by hid_error(NULL). * The given error message will be copied (and decoded according to the * currently locale, so do not pass in string constants). * The last stored global error message is freed. * Use register_global_error(NULL) to indicate "no error". */

Source from the content-addressed store, hash-verified

257 * The last stored global error message is freed.
258 * Use register_global_error(NULL) to indicate "no error". */
259static void register_global_error(const char *msg)
260{
261 register_error_str(&last_global_error_str, msg);
262}
263
264/* Similar to register_global_error, but allows passing a format string into this function. */
265static void register_global_error_format(const char *format, ...)

Callers 3

init_hid_managerFunction · 0.70
hid.cFile · 0.70
hid_enumerateFunction · 0.70

Calls 1

register_error_strFunction · 0.70

Tested by

no test coverage detected