local function T(name,v) print(name,type(v),tostring(v)) end T("loadstring",loadstring) T("getgenv.loadstring",getgenv and getgenv().loadstring) T("_G.loadstring",_G and _G.loadstring) if type(loadstring)=="function" then print("raweq_genv",rawequal(loadstring,getgenv().loadstring)) print("raweq_g",rawequal(loadstring,_G.loadstring)) print("info_s",debug.info and debug.info(loadstring,"s")) print("info_a",debug.info and debug.info(loadstring,"a")) print("info_l",debug.info and debug.info(loadstring,"l")) print("info_n",debug.info and debug.info(loadstring,"n")) print("getinfo",debug.getinfo and debug.getinfo(loadstring,"S") and (debug.getinfo(loadstring,"S").what or "?")) end print("hookfunction",type(hookfunction),"replaceclosure",type(replaceclosure),"getrawmetatable",type(getrawmetatable),"newcclosure",type(newcclosure)) print("debug.setupvalue",type(debug.setupvalue),"debug.getupvalue",type(debug.getupvalue),"debug.info",type(debug.info))