Lines Matching defs:func
86 DebugMessageHelper(const char* func);
87 DebugMessageHelper(const char* func, const char* format, ...)
131 SANE_Status wrap_exceptions_to_status_code(const char* func, F&& function)
137 DBG(DBG_error, "%s: got error: %s\n", func, exc.what());
141 DBG(DBG_error, "%s: failed to allocate memory\n", func);
144 DBG(DBG_error, "%s: got uncaught exception: %s\n", func, exc.what());
147 DBG(DBG_error, "%s: got unknown uncaught exception\n", func);
153 SANE_Status wrap_exceptions_to_status_code_return(const char* func, F&& function)
158 DBG(DBG_error, "%s: got error: %s\n", func, exc.what());
162 DBG(DBG_error, "%s: failed to allocate memory\n", func);
165 DBG(DBG_error, "%s: got uncaught exception: %s\n", func, exc.what());
168 DBG(DBG_error, "%s: got unknown uncaught exception\n", func);
174 void catch_all_exceptions(const char* func, F&& function)
179 DBG(DBG_error, "%s: got exception: %s\n", func, exc.what());
181 DBG(DBG_error, "%s: got exception: could not allocate memory: %s\n", func, exc.what());
183 DBG(DBG_error, "%s: got uncaught exception: %s\n", func, exc.what());
185 DBG(DBG_error, "%s: got unknown uncaught exception\n", func);