Skip to content

Commit

Permalink
standard library: complete debug table
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jan 8, 2024
1 parent 7d45725 commit 92fdd7f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 10 deletions.
38 changes: 33 additions & 5 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,40 @@ do
type HookFunction = function(HookEvent, integer)
getinfo: function(any): GetInfoTable
getinfo: function(any, string): GetInfoTable
getinfo: function(thread, any, string): GetInfoTable
type AnyFunction = function(any...):any...
sethook: function(thread, HookFunction, string, number)
sethook: function(HookFunction, string, number)
debug: function()
gethook: function(? thread): HookFunction, integer
getinfo: function(AnyFunction | number): GetInfoTable
getinfo: function(AnyFunction | number, string): GetInfoTable
getinfo: function(thread, AnyFunction | number, string): GetInfoTable
getlocal: function(thread, AnyFunction, number): string
getlocal: function(thread, number, number): string, any
getlocal: function(AnyFunction, number): string
getlocal: function(number, number): string, any
getmetatable: function<T>(T): metatable<T>
getregistry: function(): {any:any}
getupvalue: function(AnyFunction, number): any
getuservalue: function(userdata, number): any
sethook: function(thread, HookFunction, string, ? number)
sethook: function(HookFunction, string, ? number)
setlocal: function(thread, number, number, any): string
setlocal: function(number, number, any): string
setmetatable: function<T>(T, metatable<T>): T
setupvalue: function(AnyFunction, number, any): string
setuservalue: function<U>(U, any, number): U --[[U is userdata]]
traceback: function(thread, ? string, ? number): string
traceback: function(? string, ? number): string
upvalueid: function(AnyFunction, number): userdata
upvaluejoin: function(AnyFunction, number, AnyFunction, number)
end
global record io
Expand Down
38 changes: 33 additions & 5 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,40 @@ do
type HookFunction = function(HookEvent, integer)
getinfo: function(any): GetInfoTable
getinfo: function(any, string): GetInfoTable
getinfo: function(thread, any, string): GetInfoTable
type AnyFunction = function(any...):any...
sethook: function(thread, HookFunction, string, number)
sethook: function(HookFunction, string, number)
debug: function()
gethook: function(? thread): HookFunction, integer
getinfo: function(AnyFunction | number): GetInfoTable
getinfo: function(AnyFunction | number, string): GetInfoTable
getinfo: function(thread, AnyFunction | number, string): GetInfoTable
getlocal: function(thread, AnyFunction, number): string
getlocal: function(thread, number, number): string, any
getlocal: function(AnyFunction, number): string
getlocal: function(number, number): string, any
getmetatable: function<T>(T): metatable<T>
getregistry: function(): {any:any}
getupvalue: function(AnyFunction, number): any
getuservalue: function(userdata, number): any
sethook: function(thread, HookFunction, string, ? number)
sethook: function(HookFunction, string, ? number)
setlocal: function(thread, number, number, any): string
setlocal: function(number, number, any): string
setmetatable: function<T>(T, metatable<T>): T
setupvalue: function(AnyFunction, number, any): string
setuservalue: function<U>(U, any, number): U --[[U is userdata]]
traceback: function(thread, ? string, ? number): string
traceback: function(? string, ? number): string
upvalueid: function(AnyFunction, number): userdata
upvaluejoin: function(AnyFunction, number, AnyFunction, number)
end
global record io
Expand Down

0 comments on commit 92fdd7f

Please sign in to comment.