diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.72.0/src/log_rules.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.72.0/src/log_rules.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/src/log_rules.h b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/src/log_rules.h new file mode 100644 index 00000000..8fa0ce17 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/src/log_rules.h @@ -0,0 +1,36 @@ +/** + * @file log_rules.h + * prototypes for log_rules.cpp + * + * @author Guy Maurel + * @license GPL v2+ + */ + +#ifndef LOG_RULES_H_INCLUDED +#define LOG_RULES_H_INCLUDED + +#include "chunk_list.h" +#include "uncrustify.h" +#include "uncrustify_types.h" + +using namespace uncrustify; + + +#define log_rule(rule) \ + do { if (log_sev_on(LSPACE)) { \ + log_rule2(__func__, __LINE__, (rule), first, second); } \ + } while (0) + + +#define log_rule_B(rule) \ + do { if (log_sev_on(LSPACE)) { \ + log_rule3(__func__, (rule)); } \ + } while (0) + + +void log_rule2(const char *func, size_t line, const char *rule, chunk_t *first, chunk_t *second); + + +void log_rule3(const char *func, const char *rule); + +#endif /* LOG_RULES_H_INCLUDED */ |