Numworks Epsilon  1.4.1
Graphing Calculator Operating System
argcheck.c File Reference
#include <stdlib.h>
#include <assert.h>
#include "py/runtime.h"

Go to the source code of this file.

Functions

void mp_arg_check_num (size_t n_args, size_t n_kw, size_t n_args_min, size_t n_args_max, bool takes_kw)
 
void mp_arg_parse_all (size_t n_pos, const mp_obj_t *pos, mp_map_t *kws, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals)
 
void mp_arg_parse_all_kw_array (size_t n_pos, size_t n_kw, const mp_obj_t *args, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals)
 
NORETURN void mp_arg_error_terse_mismatch (void)
 

Function Documentation

◆ mp_arg_check_num()

void mp_arg_check_num ( size_t  n_args,
size_t  n_kw,
size_t  n_args_min,
size_t  n_args_max,
bool  takes_kw 
)

Definition at line 32 of file argcheck.c.

◆ mp_arg_error_terse_mismatch()

NORETURN void mp_arg_error_terse_mismatch ( void  )

Definition at line 136 of file argcheck.c.

◆ mp_arg_parse_all()

void mp_arg_parse_all ( size_t  n_pos,
const mp_obj_t pos,
mp_map_t kws,
size_t  n_allowed,
const mp_arg_t allowed,
mp_arg_val_t out_vals 
)

Definition at line 74 of file argcheck.c.

◆ mp_arg_parse_all_kw_array()

void mp_arg_parse_all_kw_array ( size_t  n_pos,
size_t  n_kw,
const mp_obj_t args,
size_t  n_allowed,
const mp_arg_t allowed,
mp_arg_val_t out_vals 
)

Definition at line 130 of file argcheck.c.