Profiler: Fix var args not being passed to callback register function
authorrubenwardy <rw@rubenwardy.com>
Sat, 14 Oct 2017 17:28:56 +0000 (18:28 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:31:59 +0000 (17:31 +0200)
Fixes #6517

builtin/profiler/instrumentation.lua

index be3a460e5b3bf1015fb40256b3932ccf9eace414..7c21859d3dadec9c5fd3ad35098584bc446d6378 100644 (file)
@@ -133,7 +133,7 @@ local function instrument_register(func, func_name)
                return func(instrument {
                        func = callback,
                        func_name = register_name
-               }), ...
+               }, ...)
        end
 end