Function clingo_sys::clingo_backend_external [] [src]

pub unsafe extern "C" fn clingo_backend_external(
    backend: *mut clingo_backend_t,
    atom: clingo_atom_t,
    type_: clingo_external_type_t
) -> bool

Add an external statement.

Parameters:

  • backend - the target backend
  • atom - the external atom
  • type - the type of the external statement

Returns whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc