diff --git a/scripts/genoffsets.py b/scripts/genoffsets.py index dbc279e..fa352a3 100644 --- a/scripts/genoffsets.py +++ b/scripts/genoffsets.py @@ -28,7 +28,7 @@ formatted = [', '.join(['{:>5}'.format(o) for o in chunk]) for chunk in chunks] - sig = 'static constexpr std::array PORT_OFFSETS' + sig = 'static std::array PORT_OFFSETS' header = sig.format(len(offsets)) + ' {{\n ' out = header + ',\n '.join(formatted) + '\n}};\n'