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

Go to the source code of this file.

Classes

struct  _mp_obj_singleton_t
 

Typedefs

typedef struct _mp_obj_singleton_t mp_obj_singleton_t
 

Functions

STATIC void singleton_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
 

Variables

const mp_obj_type_t mp_type_singleton
 
const mp_obj_singleton_t mp_const_ellipsis_obj = {{&mp_type_singleton}, MP_QSTR_Ellipsis}
 

Typedef Documentation

◆ mp_obj_singleton_t

Function Documentation

◆ singleton_print()

STATIC void singleton_print ( const mp_print_t print,
mp_obj_t  self_in,
mp_print_kind_t  kind 
)

Definition at line 40 of file objsingleton.c.

Variable Documentation

◆ mp_const_ellipsis_obj

const mp_obj_singleton_t mp_const_ellipsis_obj = {{&mp_type_singleton}, MP_QSTR_Ellipsis}

Definition at line 52 of file objsingleton.c.

◆ mp_type_singleton

const mp_obj_type_t mp_type_singleton
Initial value:
= {
.name = MP_QSTR_,
.print = singleton_print,
}
STATIC void singleton_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
Definition: objsingleton.c:40
const mp_obj_type_t mp_type_type
Definition: objtype.c:969
qstr name
Definition: obj.h:478

Definition at line 46 of file objsingleton.c.