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 Sun, Apr 05, 2015 at 05:47:29PM +0200, Roland Plüss wrote: > What you mean with "C-style error"? A C++ exception (that doesn't work > it looks like)? The cCall is of void return type so I can't return > anything. And smalltalk side can't check the arguments as the > information required to perform the checks is sometimes located deep > inside the engine code base. "C-style" error.. a non zero return code and maybe setting a variable with the semantic of errno. The return type of "void" is your decision? Can't you return something to indicate success or failure?