VINDICTA.TOP
Closures · Function Unregistered
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

isnewcclosure

Returns whether a function is the result of a newcclosure call.

Unregistered
This function is not registered within sUNC, your executor may/may not have this.
function isnewcclosure(funcfuncfunctionThe function to check.: function): booleanbooleantrue if the function was created by newcclosure.

Usage

Check newcclosure
function a()
    print("Hello World!")
end
print(isnewcclosure(a)) --> false
local b = newcclosure(a)
print(isnewcclosure(b)) --> true