fork/m-overlay
git clone https://git.julia.blue/fork/m-overlay
eefe2ce
gui
1function debug . trace () 2local level =1 3Msg ( "\nTrace: \n" ) 4while true do 5local info =debug . getinfo ( level , "Sln" ) 6if not info then break end 7if info . what == "C" then 8Msg ( level , "\tC function\n" ) 9else 10Msg ( string . format ( "\t%i: Line %d\t\"%s\"\t%s\n" , level , info . currentline , ( info . name or "(null)" ), ( info . short_src or "(null)" ))) 11end 12level =level + 1 13end 14Msg ( "\n\n" ) 15end