- Documentation
- Reference manual
- Foreign Language Interface
- The Foreign Include File
- Convenient functions to generate Prolog exceptions
- PL_get_atom_ex()
- PL_get_integer_ex()
- PL_get_long_ex()
- PL_get_int64_ex()
- PL_get_uint64_ex()
- PL_get_intptr_ex()
- PL_get_size_ex()
- PL_get_bool_ex()
- PL_get_float_ex()
- PL_get_char_ex()
- PL_get_pointer_ex()
- PL_get_list_ex()
- PL_get_nil_ex()
- PL_unify_list_ex()
- PL_unify_nil_ex()
- PL_unify_bool_ex()
- PL_instantiation_error()
- PL_uninstantiation_error()
- PL_representation_error()
- PL_type_error()
- PL_domain_error()
- PL_existence_error()
- PL_permission_error()
- PL_resource_error()
- PL_syntax_error()
- Convenient functions to generate Prolog exceptions
- The Foreign Include File
- Foreign Language Interface
- Packages
- Reference manual
uments an alternative API to fetch values for the C basic
types.
/** set_size(+Name:atom, +Width:int, +Height:int) is det. static foreign_t set_size(term_t name, term_t width, term_t height) { char *n; int w, h; if ( !PL_get_chars(name, &n, CVT_ATOM|CVT_EXCEPTION) || !PL_get_integer_ex(with, &w) || !PL_get_integer_ex(height, &h) ) return FALSE; ... }