python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

func.c File Reference

func.c File Reference

Function Object Type. More...

Go to the source code of this file.

Functions

PmReturn_t func_new (pPmObj_t pco, pPmObj_t pglobals, pPmObj_t *r_pfunc)
 Creates a Function Obj for the given Code Obj.

Detailed Description

Function Object Type.

Function object type operations.

Definition in file func.c.


Function Documentation

PmReturn_t func_new ( pPmObj_t  pco,
pPmObj_t  pglobals,
pPmObj_t r_pfunc 
)

Creates a Function Obj for the given Code Obj.

Allocate space for a Func obj and fill the fields.

Parameters:
pcoptr to code obj
pglobalsptr to globals dict (from containing func/module)
r_pfuncReturn by reference; pointer to new function
Returns:
Return status

Definition at line 25 of file func.c.