Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua
diff options
context:
space:
mode:
authorBottinator22 <59987380+Bottinator22@users.noreply.github.com>2025-02-08 13:12:28 -0800
committerGitHub <noreply@github.com>2025-02-08 13:12:28 -0800
commit0bb3359fe244ea6fee274337b81038b375803328 (patch)
tree73185e8c70158c02c69adad2b504ea152ecb5e01 /doc/lua
parent1002ca3255ffa04c5382d7097c44b7b8ab4cd58a (diff)
move unsorted binding docs to their own file
Diffstat (limited to 'doc/lua')
-rw-r--r--doc/lua/openstarbound/unsorted.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/lua/openstarbound/unsorted.md b/doc/lua/openstarbound/unsorted.md
new file mode 100644
index 0000000..e899d79
--- /dev/null
+++ b/doc/lua/openstarbound/unsorted.md
@@ -0,0 +1,15 @@
+# Unsorted
+
+These are functions that aren't in any specific table.
+
+---
+
+#### `Maybe<LuaFunction>, Maybe<String>` loadstring(`String` source, [`String` name, [`LuaValue` env]])
+
+Compiles the provided **source** and returns it as a callable function.
+If there are any syntax errors, returns `nil` and the error as a string instead.
+
+- **name** is used for error messages, the default is the name of the script that called `loadstring`.
+- **env** is used as the environment of the returned function, the default is `_ENV`.
+
+---