Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling c++ function dosen't return value correctly in lua coroutine function, it just returned function's input arguments #156

Open
i0gan opened this issue Sep 26, 2023 · 1 comment

Comments

@i0gan
Copy link

i0gan commented 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()

@i0gan 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
@i0gan
Copy link
Author

i0gan commented Sep 28, 2023

Here is a way to solve this bug: pwnsky/squick@1e14d00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant