aboutsummaryrefslogtreecommitdiff
path: root/docs/readme.md
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-10-17 03:01:20 -0500
committeramelia squires <[email protected]>2025-10-17 03:01:20 -0500
commit9f42df734f58c805f153afedd87a5bb720618ada (patch)
tree46349e78b832cf24c37067e6566fb0660b30d636 /docs/readme.md
parentb94f6d148193f91cab50d16e2873095827b89b1b (diff)
thread saftey
Diffstat (limited to 'docs/readme.md')
-rw-r--r--docs/readme.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/readme.md b/docs/readme.md
index 9436ba0..83c02e5 100644
--- a/docs/readme.md
+++ b/docs/readme.md
@@ -1,4 +1,7 @@
# lullaby (llby)
+
+> all files besides this and the content of net/ are out of date! ill be working on them later
+
(name subject to change)
with the library in the same directory [(or one of the other valid search locations)](https://www.lua.org/pil/8.1.html)
@@ -49,6 +52,19 @@ the number of bytes can be selected, the function will return an amount close to
some streams may not support the bytes param, and may just ignore it. if it is ignored or not given it will always read the entire stream
+### errors
+
+errors will typically be created and propogated using luaI_error (in c) but will always retain a common style (unless mentioned otherwise)
+
+it will return 3 values, in order
+
+* nil (just always a nil value first, useful to do a quick check for errors on functions with a return value)
+* string (an error message)
+* integer (an error code)
+
+similarily, when luaI_assert is called, the string will be the expression and the integer will be -1
+
+
---
## big changes