interposed.cpp 286 B

123456789101112131415
  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. __attribute__((visibility("default")))
  11. void foo(int x, int y) {
  12. throw err(x + y);
  13. }