interposed.cpp 347 B

1234567891011121314151617181920
  1. /*
  2. * Copyright 2019-2020 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. #include "interposed.h"
  10. #include <stdio.h>
  11. void A::foo(int x, int y) {
  12. printf("A::foo: %d\n", x + y);
  13. }
  14. void B::foo(int x, int y) {
  15. printf("B::foo: %d\n", x - y);
  16. }