swig/Lib/lua/carrays.i
2012-05-28 18:32:24 +00:00

8 lines
256 B
OpenEdge ABL

/* 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>