changeset 4560:661246155bbc

[project @ 2003-10-28 21:02:43 by jwe]
author jwe
date Tue, 28 Oct 2003 21:02:43 +0000
parents 802818bfac91
children e84592dc70b9
files libcruft/misc/quit.h
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libcruft/misc/quit.h	Tue Oct 28 19:13:43 2003 +0000
+++ b/libcruft/misc/quit.h	Tue Oct 28 21:02:43 2003 +0000
@@ -134,9 +134,6 @@
 
 #ifdef __cplusplus
 
-extern void (*octave_interrupt_hook) (void);
-extern void (*octave_bad_alloc_hook) (void);
-
 #define BEGIN_INTERRUPT_WITH_EXCEPTIONS \
   sig_atomic_t saved_octave_interrupt_immediately = octave_interrupt_immediately; \
  \
@@ -163,6 +160,13 @@
 
 #ifdef __cplusplus
 }
+
+// These should only be declared for C++ code, and should also be
+// outside of any extern "C" block.
+
+extern void (*octave_interrupt_hook) (void);
+extern void (*octave_bad_alloc_hook) (void);
+
 #endif
 
 #endif