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". */
| 257 | * The last stored global error message is freed. |
| 258 | * Use register_global_error(NULL) to indicate "no error". */ |
| 259 | static 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. */ |
| 265 | static void register_global_error_format(const char *format, ...) |
no test coverage detected