BrainFlow.@brainflow_rethrowMacro
@brainflow_rethrow

Macro that generates the brainflow error handling automatically after a ccall.

Example

@brainflow_rethrow function prepare_session(board_shim::BoardShim)
    ccall((:prepare_session, BOARD_CONTROLLER_INTERFACE), Cint, (Cint, Ptr{UInt8}), board_shim.board_id, board_shim.input_json)
end