Numworks Epsilon  1.4.1
Graphing Calculator Operating System
emitglue.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "py/emitglue.h"
#include "py/runtime0.h"
#include "py/bc.h"

Go to the source code of this file.

Macros

#define DEBUG_printf(...)   (void)0
 
#define DEBUG_OP_printf(...)   (void)0
 

Functions

mp_raw_code_tmp_emit_glue_new_raw_code (void)
 
void mp_emit_glue_assign_bytecode (mp_raw_code_t *rc, const byte *code, mp_uint_t len, const mp_uint_t *const_table, mp_uint_t scope_flags)
 
mp_obj_t mp_make_function_from_raw_code (const mp_raw_code_t *rc, mp_obj_t def_args, mp_obj_t def_kw_args)
 
mp_obj_t mp_make_closure_from_raw_code (const mp_raw_code_t *rc, mp_uint_t n_closed_over, const mp_obj_t *args)
 

Macro Definition Documentation

◆ DEBUG_OP_printf

#define DEBUG_OP_printf (   ...)    (void)0

Definition at line 45 of file emitglue.c.

◆ DEBUG_printf

#define DEBUG_printf (   ...)    (void)0

Definition at line 44 of file emitglue.c.

Function Documentation

◆ mp_emit_glue_assign_bytecode()

void mp_emit_glue_assign_bytecode ( mp_raw_code_t rc,
const byte code,
mp_uint_t  len,
const mp_uint_t const_table,
mp_uint_t  scope_flags 
)

Definition at line 58 of file emitglue.c.

◆ mp_emit_glue_new_raw_code()

mp_raw_code_t* mp_emit_glue_new_raw_code ( void  )

Definition at line 52 of file emitglue.c.

◆ mp_make_closure_from_raw_code()

mp_obj_t mp_make_closure_from_raw_code ( const mp_raw_code_t rc,
mp_uint_t  n_closed_over,
const mp_obj_t args 
)

Definition at line 157 of file emitglue.c.

◆ mp_make_function_from_raw_code()

mp_obj_t mp_make_function_from_raw_code ( const mp_raw_code_t rc,
mp_obj_t  def_args,
mp_obj_t  def_kw_args 
)

Definition at line 116 of file emitglue.c.