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.

22 lines
555 B

  1. /*
  2. Create a file with this name, 'tclfragments.swg', in your working
  3. directory and add all the %fragments you want to take precedence
  4. over the ones defined by default by swig.
  5. For example, if you add:
  6. %fragment(SWIG_AsVal_frag(int),"header") {
  7. SWIGINTERNINLINE int
  8. SWIG_AsVal_dec(int)(TclObject *obj, int *val)
  9. {
  10. <your code here>;
  11. }
  12. }
  13. this will replace the code used to retrieve an integer value for all
  14. the typemaps that need it, including:
  15. int, std::vector<int>, std::list<std::pair<int,int> >, etc.
  16. */