Table to String converter

Late, but here is a way to automatically get the global functions instead of hard-coding them and having “Unknown C function: …” be returned.

local Functions = {};

-- get global functions automatically
for i,v in ipairs({getgenv(),getrenv()})do
    for fol,v1 in next,v do
        if(type(fol)~="string")then
            continue;
        elseif(type(v1)=="function"and not table.find(Functions,v1))then
            Functions[v1] = fol;
        elseif(type(v1)=="table")then
            for i1,v2 in next,v1 do
                if(type(v2)=="function"and not table.find(Functions,v2))then
                    Functions[v2] = fol..'.'..i1;
                end;
            end;
        end;
    end;
end;