diff options
Diffstat (limited to 'devtools/swigwin-1.3.34/Lib/lua/carrays.i')
| -rw-r--r-- | devtools/swigwin-1.3.34/Lib/lua/carrays.i | 8 |
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> |