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.

23 lines
552 B

  1. /*
  2. Create a file with this name, 'rubyfragments.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(int)(VALUE 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. */