preprocessor: use pragma once for include guards

This slightly simplifies some of the generator code.
This commit is contained in:
Danny Robson 2018-11-13 15:19:23 +11:00
parent 6b00668692
commit b1d44b1872

View File

@ -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")