interposed.h 407 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright 2019-2022 Yury Gribov
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Use of this source code is governed by MIT license that can be
  7. * found in the LICENSE.txt file.
  8. */
  9. #ifndef INTERPOSED_H
  10. #define INTERPOSED_H
  11. #define VIS __attribute__((visibility("default")))
  12. class VIS A {
  13. public:
  14. virtual void foo(int x, int y);
  15. };
  16. class VIS B : public A {
  17. public:
  18. virtual void foo(int x, int y);
  19. };
  20. #endif