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.

24 lines
655 B

  1. /* -----------------------------------------------------------------------------
  2. * See the LICENSE file for information on copyright, usage and redistribution
  3. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4. *
  5. * attribute.i
  6. *
  7. * SWIG library file for implementing attributes.
  8. * ----------------------------------------------------------------------------- */
  9. /* we use a simple exception warning here */
  10. %{
  11. #include <stdio.h>
  12. %}
  13. #define %attribute_exception(code,msg) printf("%s\n",msg)
  14. #ifndef %arg
  15. #define %arg(x) x
  16. #endif
  17. #ifndef %mangle
  18. #define %mangle(Type...) #@Type
  19. #endif
  20. %include <typemaps/attribute.swg>