Skip to content

bugs lua_call #1

@rocaltair

Description

@rocaltair

bugs

kcp_output_callback(...){
...
lua_call(L, 1, 0);
...
}
DO NOT invoke a lua function in callback(C) functions using L which was passed by lua call (this call may happen in coroutine).

you need try this:
lua_State mainState = get_main_state(L);
...
/push args*/
lua_pcall(mainState, narg, nret, err);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions