1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 00:15:59 +01:00

Use void as parameter when no parameter exists

This commit is contained in:
usr42
2017-01-26 17:35:11 +01:00
parent 4e7451acd1
commit 7888b6e9c8
2 changed files with 7 additions and 6 deletions

View File

@@ -271,6 +271,7 @@ end
#example: ARG0_TYPE arg0, ARG1_TYPE arg1
def arg_val_list(args_count)
return "void" if (args_count == 0)
arguments = []
args_count.times { |i| arguments << "ARG#{i}_TYPE arg#{i}" }
arguments.join(", ")