From ab1b0b3e4f308b77c3d5a3251c48948150a4248e Mon Sep 17 00:00:00 2001 From: Nicholas Hayashi Date: Wed, 14 Jul 2021 23:29:08 -0400 Subject: [PATCH] fprofile works with multiuple return alues --- src/extra.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/extra.lua b/src/extra.lua index 2214fd4..33a197c 100644 --- a/src/extra.lua +++ b/src/extra.lua @@ -1,9 +1,7 @@ --- @TODO make it work with functions that return multiple values --- right now it discards returned values beyond the first function fprofile(f, ...) local t1 = am.current_time() - local result = f(...) + local result = { f(...) } log("%f", am.current_time() - t1) return result end