Skip to content

Conversation

waschik
Copy link
Contributor

@waschik waschik commented Dec 14, 2023

Fixes #464.

Pass function arguments. Previously the function was called always with zero arguments.

@coveralls
Copy link

coveralls commented Dec 14, 2023

Coverage Status

coverage: 89.622% (-0.001%) from 89.623%
when pulling c1aa69d on waschik:bugfix/xpcall-number-args
into 2348fd0 on yuin:master.

fn := L.CheckFunction(1)
errfunc := L.CheckFunction(2)

L.Remove(2)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuin I am nut sure if removing element is fine. But as fare as I understand at the end of baseXPCall all arguments are anyway removed from stack.

So removing is a bit simpler then manually duplicate all arguments. For performance there is no use because remove will be sure no improvement because remove will also copy values.

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

Successfully merging this pull request may close these issues.

stuck when xpcall

2 participants