You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now it wont fill the stack with junk, but you can also now check if a global exists via globalExists, it does not check its type, rather that the global is not nil. I may think about adding a couple helpers that check if its a function or table, etc, as well.
Tomasu
changed the title
Check if global function exists before invoking it
add helpers to determine if globals (or table fields) are specific types
Sep 6, 2014
I'd like to know if it's possible to check if a global function exists before doing invokeFunction or invokeVoidFunction.
If I try to call a function that doesn't exist, the stack keeps getting filled with "`attempt to call a nil value'"
Any ideas on how to prevent this?
Thanks
The text was updated successfully, but these errors were encountered: