parameters: (func, *args)
return_statement: return ret
docstring: Calls ffi function and propagates foreign errors.
docstring_summary: Calls ffi function and propagates foreign errors.
docstring_tokens: Calls ffi function and propagates foreign errors .
function: def ffi_call(func, *args):
      """Calls ffi function and propagates foreign errors."""
      ret = func(_TLS.err, *args)
      if _TLS.err.code:
          raise Error(_TLS.err)
      return ret
function_tokens: def ffi_call ( func , * args ) : ret = func ( _TLS . err , * args ) if _TLS . err . code : raise Error ( _TLS . err ) return ret