win32-signal.h 844 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // win32-signal.h - Catch runtime signals and turn them into exceptions.
  2. /* Copyright (C) 1998, 1999, 2000 Free Software Foundation
  3. This file is part of libgcj.
  4. This software is copyrighted work licensed under the terms of the
  5. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  6. details. */
  7. // Exception handling is done totally differently on Win32 this stuff
  8. // just keeps it compatible
  9. #ifndef JAVA_SIGNAL_H
  10. #define JAVA_SIGNAL_H 1
  11. #define HANDLE_SEGV 1
  12. #define HANDLE_FPE 1
  13. #define SIGNAL_HANDLER(_name) \
  14. static void _name (int _dummy)
  15. #define MAKE_THROW_FRAME(_exception) do {} while (0)
  16. #define HANDLE_DIVIDE_OVERFLOW do {} while (0)
  17. #define INIT_SEGV \
  18. do \
  19. { \
  20. } \
  21. while (0)
  22. #define INIT_FPE \
  23. do \
  24. { \
  25. } \
  26. while (0)
  27. #endif /* JAVA_SIGNAL_H */