mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move report_info and SSRF_INFO to errorhelper.h
qthelper.h is an absolute monstrosity and it is unclear what report_info and SSRF_INFO have to do with Qt. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d653cec7a4
commit
fcf0bda042
6 changed files with 8 additions and 9 deletions
|
@ -147,14 +147,8 @@ volume_t string_to_volume(const char *str, pressure_t workp);
|
|||
fraction_t string_to_fraction(const char *str);
|
||||
void emit_reset_signal();
|
||||
|
||||
extern void report_info(const char *fmt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
// 4) SSRF_INFO macro to replace fprintf calls in our code
|
||||
// (originally based on logging bits from libdivecomputer)
|
||||
#define SSRF_INFO(fmt, ...) report_info(fmt, ##__VA_ARGS__)
|
||||
|
||||
#endif // QTHELPER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue