Numworks Epsilon  1.4.1
Graphing Calculator Operating System
objtype.h File Reference
#include "py/obj.h"

Go to the source code of this file.

Classes

struct  _mp_obj_instance_t
 

Macros

#define mp_obj_is_instance_type(type)   ((type)->make_new == mp_obj_instance_make_new)
 
#define mp_obj_is_native_type(type)   ((type)->make_new != mp_obj_instance_make_new)
 

Typedefs

typedef struct _mp_obj_instance_t mp_obj_instance_t
 

Functions

void mp_obj_instance_attr (mp_obj_t self_in, qstr attr, mp_obj_t *dest)
 
bool mp_obj_instance_is_callable (mp_obj_t self_in)
 
mp_obj_t mp_obj_instance_call (mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
 
mp_obj_t mp_obj_instance_make_new (const mp_obj_type_t *self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
 

Macro Definition Documentation

◆ mp_obj_is_instance_type

#define mp_obj_is_instance_type (   type)    ((type)->make_new == mp_obj_instance_make_new)

Definition at line 47 of file objtype.h.

◆ mp_obj_is_native_type

#define mp_obj_is_native_type (   type)    ((type)->make_new != mp_obj_instance_make_new)

Definition at line 48 of file objtype.h.

Typedef Documentation

◆ mp_obj_instance_t

Function Documentation

◆ mp_obj_instance_attr()

void mp_obj_instance_attr ( mp_obj_t  self_in,
qstr  attr,
mp_obj_t dest 
)

Definition at line 739 of file objtype.c.

◆ mp_obj_instance_call()

mp_obj_t mp_obj_instance_call ( mp_obj_t  self_in,
size_t  n_args,
size_t  n_kw,
const mp_obj_t args 
)

Definition at line 809 of file objtype.c.

◆ mp_obj_instance_is_callable()

bool mp_obj_instance_is_callable ( mp_obj_t  self_in)

Definition at line 804 of file objtype.c.

◆ mp_obj_instance_make_new()

mp_obj_t mp_obj_instance_make_new ( const mp_obj_type_t self_in,
size_t  n_args,
size_t  n_kw,
const mp_obj_t args 
)

Definition at line 247 of file objtype.c.