interposed.h 400 B

12345678910111213141516171819202122
  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. #include <stdexcept>
  12. struct err : public std::runtime_error {
  13. int cookie;
  14. err(int cookie) : std::runtime_error(""), cookie(cookie) {}
  15. };
  16. extern void foo(int x, int y);
  17. #endif