From b1d44b1872246552a25d380425e2b3e097be90c1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 13 Nov 2018 15:19:23 +1100 Subject: [PATCH] preprocessor: use pragma once for include guards This slightly simplifies some of the generator code. --- preprocessor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/preprocessor.py b/preprocessor.py index 8066cf5b..e9af8a34 100755 --- a/preprocessor.py +++ b/preprocessor.py @@ -130,8 +130,7 @@ if __name__ == '__main__': arity = 3 dst.write("""\ -#ifndef CRUFT_UTIL_PREPROCESSOR_HPP -#define CRUFT_UTIL_PREPROCESSOR_HPP +#pragma once /////////////////////////////////////////////////////////////////////////////// // @@ -194,5 +193,3 @@ if __name__ == '__main__': for l in lines: dst.write(l) dst.write('\n') - - dst.writelines("#endif\n")