diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-05 11:34:46 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-05 11:34:46 +0200 |
commit | 53905b78f479d8d9d42a8bd6336314031814e52a (patch) | |
tree | b2abc5f528a5049d5035d84c236066f8408e77cd | |
parent | caec5bd3d940458b96a1566561f4e624e53c5d92 (diff) |
Use '#pragma once' for new header files.
-rwxr-xr-x | tools/add_file | 4 |
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 |