Definition files for userdata #2378
|
I'm using an embedded lua interpreter in my project in order to allow users to write their own lua scripts to be executed on-demand. Since their scripts are designed to interact with my project, I register a number of APIs as |
Answered by
VariableVixen
Oct 16, 2023
Replies: 1 comment
|
I figured it out. The annotated variable needs to be global, not |
0 replies
Answer selected by
VariableVixen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out. The annotated variable needs to be global, not
local, that's all. Any functions can just be entirely empty since the file is only parsed for metadata.