diff options
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r-- | src/slv2_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h index a24570f..b4b23b3 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -240,6 +240,11 @@ struct _SLV2Results { char* slv2_strjoin(const char* first, ...); char* slv2_get_lang(); +#define SLV2_ERROR(str) fprintf(stderr, "ERROR: %s: " str, __func__) +#define SLV2_ERRORF(fmt, ...) fprintf(stderr, "ERROR: %s: " fmt, __func__, __VA_ARGS__) + +#define SLV2_WARN(str) fprintf(stderr, "WARNING: %s: " str, __func__) +#define SLV2_WARNF(fmt, ...) fprintf(stderr, "WARNING: %s: " fmt, __func__, __VA_ARGS__) #ifdef __cplusplus } |