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

Go to the source code of this file.

Classes

struct  _mp_obj_bool_t
 

Typedefs

typedef struct _mp_obj_bool_t mp_obj_bool_t
 

Functions

STATIC void bool_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
 
STATIC mp_obj_t bool_make_new (const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
 
STATIC mp_obj_t bool_unary_op (mp_unary_op_t op, mp_obj_t o_in)
 
STATIC mp_obj_t bool_binary_op (mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in)
 

Variables

const mp_obj_type_t mp_type_bool
 
const mp_obj_bool_t mp_const_false_obj = {{&mp_type_bool}, false}
 
const mp_obj_bool_t mp_const_true_obj = {{&mp_type_bool}, true}
 

Typedef Documentation

◆ mp_obj_bool_t

typedef struct _mp_obj_bool_t mp_obj_bool_t

Function Documentation

◆ bool_binary_op()

STATIC mp_obj_t bool_binary_op ( mp_binary_op_t  op,
mp_obj_t  lhs_in,
mp_obj_t  rhs_in 
)

Definition at line 72 of file objbool.c.

◆ bool_make_new()

STATIC mp_obj_t bool_make_new ( const mp_obj_type_t type_in,
size_t  n_args,
size_t  n_kw,
const mp_obj_t args 
)

Definition at line 53 of file objbool.c.

◆ bool_print()

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

Definition at line 36 of file objbool.c.

◆ bool_unary_op()

STATIC mp_obj_t bool_unary_op ( mp_unary_op_t  op,
mp_obj_t  o_in 
)

Definition at line 64 of file objbool.c.

Variable Documentation

◆ mp_const_false_obj

const mp_obj_bool_t mp_const_false_obj = {{&mp_type_bool}, false}

Definition at line 86 of file objbool.c.

◆ mp_const_true_obj

const mp_obj_bool_t mp_const_true_obj = {{&mp_type_bool}, true}

Definition at line 87 of file objbool.c.

◆ mp_type_bool

const mp_obj_type_t mp_type_bool
Initial value:
= {
.name = MP_QSTR_bool,
.print = bool_print,
.make_new = bool_make_new,
.unary_op = bool_unary_op,
.binary_op = bool_binary_op,
}
STATIC mp_obj_t bool_unary_op(mp_unary_op_t op, mp_obj_t o_in)
Definition: objbool.c:64
STATIC void bool_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
Definition: objbool.c:36
STATIC mp_obj_t bool_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
Definition: objbool.c:53
STATIC mp_obj_t bool_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in)
Definition: objbool.c:72
const mp_obj_type_t mp_type_type
Definition: objtype.c:969
qstr name
Definition: obj.h:478

Definition at line 77 of file objbool.c.