summaryrefslogtreecommitdiff
path: root/src/rules/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rules/debug.cpp')
-rw-r--r--src/rules/debug.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/rules/debug.cpp b/src/rules/debug.cpp
index 880b60b..7edae01 100644
--- a/src/rules/debug.cpp
+++ b/src/rules/debug.cpp
@@ -39,3 +39,23 @@ parseLineRule(debugH)
"Probably need replace it to #include \"localconsts.h\"");
}
}
+
+
+registerRuleExt(debugCpp, "(.+)[.]cpp")
+
+startRule(debugCpp)
+{
+}
+
+endRule(debugCpp)
+{
+ print("Missing #include \"debug.h\". "
+ "It need for profiling and memory debugging.");
+}
+
+parseLineRule(debugCpp)
+{
+ trim(data);
+ if (data == "#include \"debug.h\"")
+ terminateRule();
+}