caveat/make_ecall_tbl.py: introduce header guard
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 20:01:38 +0000 (23:01 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 21 Sep 2023 20:01:50 +0000 (23:01 +0300)
caveat/make_ecall_tbl.py

index 6ae34c5bb2e4f065eb276ebdbd09bab950041bcf..9447738ad8a903091eb4061f6aa5129ca35cfcfa 100644 (file)
@@ -39,6 +39,7 @@ for line in rv:
         highest = max(num, highest)
 
 en = open('ecall_nums.h', 'w')
+en.write("#pragma once\n")
 
 for name in sorted(enames.keys()):
     en.write('#ifndef __NR_{:s}\n'.format(name))