Skip to content

Commit

Permalink
Sort constants in *_const.lua modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dargueta committed Oct 4, 2024
1 parent c398a57 commit 7c7ead8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/arch_const_generator.template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main(void)
"--- @module $(source_stem)_const\n" \
"return {\n"
);
@ for name, text in pairs(constants) do
@ for name, text in tablex.sort(constants) do
printf(" --- `$(name)`\n $(name) = %d;\n", $(name));
@ end
printf("}\n");
Expand Down

0 comments on commit 7c7ead8

Please sign in to comment.