Marcel Taeumel uploaded a new version of FFI-Pools to project FFI: http://source.squeak.org/FFI/FFI-Pools-mt.40.mcz
==================== Summary ====================
Name: FFI-Pools-mt.40 Author: mt Time: 17 April 2024, 11:14:11.267706 am UUID: cc8f5f16-1bea-8445-8e66-ba1b56b94e4b Ancestors: FFI-Pools-mt.39
Expose primitive 220 to let clients manage FFI exception handling.
=============== Diff against FFI-Pools-mt.39 ===============
Item was added: + ----- Method: FFIConstants class>>getFFIExceptionHandling (in category 'exception handling') ----- + getFFIExceptionHandling + <primitive: 220> "#primitiveGetSetFFIExceptionHandling" + ^ -1!
Item was added: + ----- Method: FFIConstants class>>setFFIExceptionHandling: (in category 'exception handling') ----- + setFFIExceptionHandling: anInteger + "Set whether exceptions in FFI callouts should result in #primitiveFailed or + crash the VM. + -1 never fail (but crash) + 0 fail if method has a primitive error code (default) + 1 always fail" + <primitive: 220 error: ec> "#primitiveGetSetFFIExceptionHandling" + ec == #'bad argument' ifTrue: + [^self error: 'argument must be -1, 0, or 1']. + ec == #'unsupported operation' ifTrue: + [^self error: 'platform does not support FFI exception handling']. + self primitiveFailed.!