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

summaryrefslogtreecommitdiff
path: root/doc/lua/openstarbound
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lua/openstarbound')
-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`.
+
+---