diff options
Diffstat (limited to 'share/swig/2.0.11/lua/carrays.i')
-rw-r--r-- | share/swig/2.0.11/lua/carrays.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/swig/2.0.11/lua/carrays.i b/share/swig/2.0.11/lua/carrays.i new file mode 100644 index 0000000..1bc45d8 --- /dev/null +++ b/share/swig/2.0.11/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> |