Counter Strike : Global Offensive Source Code
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.

27 lines
799 B

  1. #define PROC_TEMPLATE2(proc, mod, internal, ordinal) \
  2. \
  3. \
  4. \
  5. extern void __ ## mod ## dynlink(PROCDATA *); \
  6. \
  7. static PROCDATA p = { #proc, \
  8. ordinal, \
  9. NULL, \
  10. NULL \
  11. }; \
  12. \
  13. typedef T_ ## proc (K_ ## proc * FT_ ## proc) P_ ## proc ; \
  14. \
  15. T_ ## proc K_ ## proc proc P_ ## proc \
  16. { \
  17. if (p.fp==NULL) \
  18. __ ## mod ## dynlink(&p); \
  19. if (p.fp) \
  20. return ((FT_ ## proc)p.fp) A_ ## proc; \
  21. else \
  22. return (T_ ## proc)0; \
  23. }
  24. #define PROC_TEMPLATE(proc, mod, internal, ordinal) \
  25. PROC_TEMPLATE2(proc, mod, internal, ordinal)
  26.