preprocessor: use pragma once for include guards
This slightly simplifies some of the generator code.
This commit is contained in:
parent
6b00668692
commit
b1d44b1872
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user