#define NEWBUILTIN N1
extern int b_NEWBUILTIN();and
set_b_inst ( NEWBUILTIN, b_NEWBUILTIN );in the appropriate places.
OBJS = [ … other file names … ] newbuiltin.o |
Assume that the builtin predicate to be added is newbuiltin/4. The procedure for installing the Prolog code for this is as follows: