Re: Correct way to throw exceptions/errors from C to ST
Holger Hans Peter Freyther <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.gnu.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Apr 04, 2015 at 02:50:01AM +0200, Roland Plüss wrote: Oh, > gst_eval_code( "SystemExceptions.InvalidArgument new signal" ); > > But this causes the VM to call abort since an exception happened outside > the bytecode. I assume you need to be more clever in this case. So what > is the correct way to throw these kinds of exceptions from inside a C > function? Oh I don't know. The signal should occur once is out of C. E.g. you should be able to return an instance of InvalidArgument and in the Smalltalk code that triggered the C call-out check for the response and then signal it?