summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/PracroAdd10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/PracroAdd b/tools/PracroAdd
index cbcdb64..c2ffdf0 100644
--- a/tools/PracroAdd
+++ b/tools/PracroAdd
@@ -57,6 +57,16 @@ function ccfile() {
echo -n $hf >> $1;
echo '"' >> $1;
echo '' >> $1;
+
+ local hn=`echo $1 | cut -d'.' -f1 | tr 'a-z.' 'A-Z_'`
+ echo "#ifdef TEST_${hn}" >> $1;
+ echo "" >> $1;
+ echo "int main()" >> $1;
+ echo "{" >> $1;
+ echo " return 0;" >> $1;
+ echo "}" >> $1;
+ echo "" >> $1;
+ echo "#endif/*TEST_${hn}*/" >> $1;
}
function hfile() {