You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local co = coroutine.create(function()
-- Call c++ function
local list = Squick:GetConfigIDList("Server")
-- The returned list's value is "Server"
end)
local status, err = coroutine.resume()
The text was updated successfully, but these errors were encountered:
i0gan
changed the title
To call c++ function dosen't return value correctly in lua coroutine function, it just returned function's input arguments
Calling c++ function dosen't return value correctly in lua coroutine function, it just returned function's input arguments
Sep 26, 2023
Example:
local co = coroutine.create(function()
-- Call c++ function
local list = Squick:GetConfigIDList("Server")
-- The returned list's value is "Server"
end)
local status, err = coroutine.resume()
The text was updated successfully, but these errors were encountered: