summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/add_file4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/add_file b/tools/add_file
index d63b4ab..750ba30 100755
--- a/tools/add_file
+++ b/tools/add_file
@@ -60,9 +60,7 @@ function hfile() {
allfile $1;
local hn=`echo $1 | tr 'a-z.' 'A-Z_'`
local pr=`echo $PROJECT | tr 'a-z.' 'A-Z_'`
- echo "#ifndef __${pr}_${hn}__" >> $1;
- echo "#define __${pr}_${hn}__" >> $1;
- echo "#endif/*__${pr}_${hn}__*/" >> $1;
+ echo "#pragma once" >> $1;
}
if [ "$#" = "1" ]; then