aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-06-30 15:39:03 +0200
committerKim Alvefur <zash@zash.se>2022-06-30 15:39:03 +0200
commit6e1de3134c037a4308531c031f9eae401091ed76 (patch)
tree168e7121f46aa6edb659db886fc6c5bef6c47e7c
parent64641500885e86a28f79c69dbeb85ba2fa2566a3 (diff)
downloadprosody-6e1de3134c037a4308531c031f9eae401091ed76.tar.gz
prosody-6e1de3134c037a4308531c031f9eae401091ed76.zip
util.bitcompat: Add Teal type specification
-rw-r--r--teal-src/util/bitcompat.d.tl8
1 files changed, 8 insertions, 0 deletions
diff --git a/teal-src/util/bitcompat.d.tl b/teal-src/util/bitcompat.d.tl
new file mode 100644
index 00000000..18adf725
--- /dev/null
+++ b/teal-src/util/bitcompat.d.tl
@@ -0,0 +1,8 @@
+local record lib
+ band : function (integer, integer, ... : integer) : integer
+ bor : function (integer, integer, ... : integer) : integer
+ bxor : function (integer, integer, ... : integer) : integer
+ lshift : function (integer, integer) : integer
+ rshift : function (integer, integer) : integer
+end
+return lib