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
|
arity = 3
|
||||||
|
|
||||||
dst.write("""\
|
dst.write("""\
|
||||||
#ifndef CRUFT_UTIL_PREPROCESSOR_HPP
|
#pragma once
|
||||||
#define CRUFT_UTIL_PREPROCESSOR_HPP
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
@ -194,5 +193,3 @@ if __name__ == '__main__':
|
|||||||
for l in lines:
|
for l in lines:
|
||||||
dst.write(l)
|
dst.write(l)
|
||||||
dst.write('\n')
|
dst.write('\n')
|
||||||
|
|
||||||
dst.writelines("#endif\n")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user