summaryrefslogtreecommitdiff
path: root/devtools/swigwin-1.3.34/Lib/lua/carrays.i
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /devtools/swigwin-1.3.34/Lib/lua/carrays.i
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'devtools/swigwin-1.3.34/Lib/lua/carrays.i')
-rw-r--r--devtools/swigwin-1.3.34/Lib/lua/carrays.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/devtools/swigwin-1.3.34/Lib/lua/carrays.i b/devtools/swigwin-1.3.34/Lib/lua/carrays.i
new file mode 100644
index 0000000..9a210d2
--- /dev/null
+++ b/devtools/swigwin-1.3.34/Lib/lua/carrays.i
@@ -0,0 +1,8 @@
+/* Small change to the standard carrays.i
+renaming the field to __getitem__ & __setitem__
+for operator[] access
+*/
+%rename(__getitem) *::getitem; // the v=X[i] (get operator)
+%rename(__setitem) *::setitem; // the X[i]=v (set operator)
+
+%include <../carrays.i>