YAP 7.1.0
args.c File Reference

@aingroup PredicateArgsC How to access a list of arguments from C More...

#include "Yap.h"
#include "Yatom.h"
#include "amiops.h"

Go to the source code of this file.

#define YAP_XARGINFO(Error, Message)
 
int Yap_ArgKey (Atom key, const param_t *def, int n)
 Returns the index of an argument key, or -1 if not found. More...
 
xargYap_ArgListToVector__ (const char *file, const char *function, int lineno, Term listl, const param_t *def, int n, xarg *a, yap_error_number err)
 
xargYap_ArgList2ToVector__ (const char *file, const char *function, int lineno, Term listl, const param2_t *def, int n, yap_error_number err)
 Yap_ArgList2ToVector is much the same as before, but assumes parameters also have something called a scope. More...
 

Detailed Description

@aingroup PredicateArgsC How to access a list of arguments from C

Lists of arguments in C @

Definition in file args.c.

Macro Definition Documentation

◆ YAP_XARGINFO

#define YAP_XARGINFO (   Error,
  Message 
)

Definition at line 53 of file args.c.

Function Documentation

◆ Yap_ArgKey()

int Yap_ArgKey ( Atom  key,
const param_t def,
int  n 
)

Returns the index of an argument key, or -1 if not found.

Definition at line 42 of file args.c.

◆ Yap_ArgList2ToVector__()

xarg * Yap_ArgList2ToVector__ ( const char *  file,
const char *  function,
int  lineno,
Term  listl,
const param2_t def,
int  n,
yap_error_number  err 
)

Yap_ArgList2ToVector is much the same as before, but assumes parameters also have something called a scope.

Definition at line 153 of file args.c.

◆ Yap_ArgListToVector__()

xarg * Yap_ArgListToVector__ ( const char *  file,
const char *  function,
int  lineno,
Term  listl,
const param_t def,
int  n,
xarg a,
yap_error_number  err 
)

Definition at line 56 of file args.c.