From 28d67699c4eb747d6b287c7ac67262b8b19ee73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 12 Jul 2021 17:10:23 +0800 Subject: fix template/debug --- meta/template/debug.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/template/debug.lua') diff --git a/meta/template/debug.lua b/meta/template/debug.lua index 26b6049e..67da98b1 100644 --- a/meta/template/debug.lua +++ b/meta/template/debug.lua @@ -109,7 +109,7 @@ function debug.getupvalue(f, up) end ---@return any ---@return boolean function debug.getuservalue(u, n) end ----#else +---#elseif VERSION >= 5.2 then ---#DES 'debug.getuservalue<5.3' ---@param u userdata ---@return any @@ -173,7 +173,7 @@ function debug.setupvalue(f, up, value) end ---@param n integer ---@return userdata udata function debug.setuservalue(udata, value, n) end ----#else +---#elseif VERSION >= 5.2 then ---#DES 'debug.setuservalue<5.3' ---@param udata userdata ---@param value any -- cgit v1.2.3