diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-11 21:51:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 21:51:35 +0800 |
commit | 87f74181a4d2e638834440be45c2cf3fce096195 (patch) | |
tree | 18edb32cfb9f1f1c352f903f11fa902f422b69ae /meta/3rd/Defold/library/built-ins.lua | |
parent | 1fd547431097f80cdee019d30fff9149c250c7a1 (diff) | |
parent | 893121d303baa63d8172055688278826e78a9b54 (diff) | |
download | lua-language-server-87f74181a4d2e638834440be45c2cf3fce096195.zip |
Merge pull request #1665 from SalavatR/master
Defold engine meta
Diffstat (limited to 'meta/3rd/Defold/library/built-ins.lua')
-rw-r--r-- | meta/3rd/Defold/library/built-ins.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/3rd/Defold/library/built-ins.lua b/meta/3rd/Defold/library/built-ins.lua new file mode 100644 index 00000000..9365baf0 --- /dev/null +++ b/meta/3rd/Defold/library/built-ins.lua @@ -0,0 +1,24 @@ +---Built-ins API documentation +---Built-in scripting functions. + +---All ids in the engine are represented as hashes, so a string needs to be hashed +---before it can be compared with an id. +---@param s string # string to hash +---@return hash # a hashed string +function hash(s) end + +---Returns a hexadecimal representation of a hash value. +---The returned string is always padded with leading zeros. +---@param h hash # hash value to get hex string for +---@return string # hex representation of the hash +function hash_to_hex(h) end + +---Pretty printing of Lua values. This function prints Lua values +---in a manner similar to +print()+, but will also recurse into tables +---and pretty print them. There is a limit to how deep the function +---will recurse. +---@param v any # value to print +function pprint(v) end + + + |