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:
@@ -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(", ")
|
||||
|
||||
Reference in New Issue
Block a user