From 8328e4d78455eaa3627455469c7517f6805c6da3 Mon Sep 17 00:00:00 2001 From: unwox Date: Thu, 30 Oct 2025 17:22:26 +0600 Subject: add luna.restart function --- lua_common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua_common.go') diff --git a/lua_common.go b/lua_common.go index 29fdab9..616beea 100644 --- a/lua_common.go +++ b/lua_common.go @@ -42,12 +42,12 @@ func (l *Lua) PushAny(v any) error { switch v.(type) { case nil: l.PushNil() - case string: - v, _ := v.(string) - l.PushString(v) case func (l *Lua) int: v, _ := v.(func (l *Lua) int) l.PushGoFunction(v) + case string: + v, _ := v.(string) + l.PushString(v) case int: v, _ := v.(int) l.PushNumber(v) -- cgit v1.2.3