Mercurial > octave-nkf
comparison src/utils.cc @ 7481:78f3811155f7
use exceptions in liboctave error handler
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 14 Feb 2008 17:14:23 -0500 |
parents | a1dbe9d80eee |
children | 82be108cc558 |
comparison
equal
deleted
inserted
replaced
7480:93826ba0d078 | 7481:78f3811155f7 |
---|---|
964 #define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_FOR_VSNPRINTF \ | 964 #define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_FOR_VSNPRINTF \ |
965 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_1; \ | 965 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_1; \ |
966 delete [] buf; \ | 966 delete [] buf; \ |
967 buf = 0; \ | 967 buf = 0; \ |
968 size = initial_size; \ | 968 size = initial_size; \ |
969 octave_throw_interrupt_exception (); \ | 969 octave_rethrow_exception (); \ |
970 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2 | 970 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2 |
971 | 971 |
972 #if defined __GNUC__ && defined __va_copy | 972 #if defined __GNUC__ && defined __va_copy |
973 #define SAVE_ARGS(saved_args, args) __va_copy (saved_args, args) | 973 #define SAVE_ARGS(saved_args, args) __va_copy (saved_args, args) |
974 #elif defined va_copy | 974 #elif defined va_copy |