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

optional arguments #74

Open
x87 opened this issue Oct 24, 2022 · 2 comments
Open

optional arguments #74

x87 opened this issue Oct 24, 2022 · 2 comments

Comments

@x87
Copy link
Contributor

x87 commented Oct 24, 2022

allow a command to have optional arguments, e.g. when the calling site sets default values

@x87
Copy link
Contributor Author

x87 commented Oct 24, 2022

bully uses optional arguments quite often. lua checks a number of input arguments, if it is less than required, default values are provided.

@x87
Copy link
Contributor Author

x87 commented Dec 17, 2022

Idea: Implement SDK method GetNextParamType so you can peek a type for the next argument in stack, something like 1 for int, 2 for float, 3 for string, 0 for undefined

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