Closed katsaii closed 1 year ago
Add a is_catspeak function which returns whether a value is a callable Catspeak function or not.
is_catspeak
Potential implementations (courtesy of @tabularelf):
function is_catspeak(value) { return string(value) == "function gml_Script___catspeak_function__"; }
function is_catspeak(value) { return is_method(value) && method_get_index(value) == __catspeak_function__; }
What is your feature request?
Add a
is_catspeak
function which returns whether a value is a callable Catspeak function or not.Please describe in detail how you expect this new feature to behave.
Potential implementations (courtesy of @tabularelf):