Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
261 B

  1. /* Small change to the standard carrays.i
  2. renaming the field to __getitem__ & __setitem__
  3. for operator[] access
  4. */
  5. %rename(__getitem) *::getitem; // the v=X[i] (get operator)
  6. %rename(__setitem) *::setitem; // the X[i]=v (set operator)
  7. %include <../carrays.i>