Numworks Epsilon  1.4.1
Graphing Calculator Operating System
objboundmeth.c File Reference
#include <string.h>
#include "py/obj.h"
#include "py/runtime.h"

Go to the source code of this file.

Classes

struct  _mp_obj_bound_meth_t
 

Typedefs

typedef struct _mp_obj_bound_meth_t mp_obj_bound_meth_t
 

Functions

STATIC void bound_meth_print (const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
 
mp_obj_t mp_call_method_self_n_kw (mp_obj_t meth, mp_obj_t self, size_t n_args, size_t n_kw, const mp_obj_t *args)
 
STATIC mp_obj_t bound_meth_call (mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
 
mp_obj_t mp_obj_new_bound_meth (mp_obj_t meth, mp_obj_t self)
 

Variables

STATIC const mp_obj_type_t mp_type_bound_meth
 

Typedef Documentation

◆ mp_obj_bound_meth_t

Function Documentation

◆ bound_meth_call()

STATIC mp_obj_t bound_meth_call ( mp_obj_t  self_in,
size_t  n_args,
size_t  n_kw,
const mp_obj_t args 
)

Definition at line 73 of file objboundmeth.c.

◆ bound_meth_print()

STATIC void bound_meth_print ( const mp_print_t print,
mp_obj_t  o_in,
mp_print_kind_t  kind 
)

Definition at line 39 of file objboundmeth.c.

◆ mp_call_method_self_n_kw()

mp_obj_t mp_call_method_self_n_kw ( mp_obj_t  meth,
mp_obj_t  self,
size_t  n_args,
size_t  n_kw,
const mp_obj_t args 
)

Definition at line 50 of file objboundmeth.c.

◆ mp_obj_new_bound_meth()

mp_obj_t mp_obj_new_bound_meth ( mp_obj_t  meth,
mp_obj_t  self 
)

Definition at line 103 of file objboundmeth.c.

Variable Documentation

◆ mp_type_bound_meth

STATIC const mp_obj_type_t mp_type_bound_meth
Initial value:
= {
.name = MP_QSTR_bound_method,
.print = bound_meth_print,
.call = bound_meth_call,
}
STATIC void bound_meth_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
Definition: objboundmeth.c:39
STATIC mp_obj_t bound_meth_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
Definition: objboundmeth.c:73
const mp_obj_type_t mp_type_type
Definition: objtype.c:969
qstr name
Definition: obj.h:478

Definition at line 91 of file objboundmeth.c.