aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/io.lua
blob: 6e7eb9d057d4a7cd244249460b59c10e2c90ce5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---@meta

---@class io
---@field filemallocchunk integer default chunk size for readfile
---@field print_type integer print the type next to the value
---@field max_depth integer max print depth before collapsing
---@field start_nl_at integer when to start new line while printing
---@field collapse_all integer whether or not to collapse everything
---@field collapse_to_memory integer when collapsing, print memory address
---@field print_meta integer print metatable
local io = {}

---print a string with a "pretty" log header
---@param value string value to print
---@return nil
function io.log(value) end

---print a string with a "pretty" warning header
---@param value string value to print
---@return nil
function io.warn(value) end

---print a string with a "pretty" error header
---@param value string value to print
---@return nil
function io.error(value) end

---print a string with a "pretty" debug header
---@param value string value to print
---@return nil
function io.debug(value) end

---prints any value, expanding tables
---@param value any value to print
---@return nil
function io.pprint(value) end

---@deprecated
function io.readfile() end

---@deprecated
function io.json_parse() end

---@deprecated
function io.arg_handle() end

return io