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

Remove global server ptr getter used in scripting #1486

Merged
merged 1 commit into from
Jun 6, 2023

Conversation

PragmaTwice
Copy link
Member

@PragmaTwice PragmaTwice commented Jun 6, 2023

The GetServer function is only used in scripting, and actually can be removed since we can store the ptr in lua runtime via lightuserdata. Hence we remove it in this PR to eliminate the number of (accessible) global variables.

@PragmaTwice
Copy link
Member Author

Thanks all. Merging...

@PragmaTwice PragmaTwice merged commit c471fa5 into apache:unstable Jun 6, 2023
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.

3 participants