python-on-a-chip online compiler
VM Globals. More...
Go to the source code of this file.
Functions | |
PmReturn_t | global_init (void) |
Initializes the global struct. | |
PmReturn_t | global_setBuiltins (pPmFunc_t pmod) |
Sets the builtins dict into the given module's attrs. | |
PmReturn_t | global_loadBuiltins (void) |
Loads the "__bt" module and sets the builtins dict (PM_PBUILTINS) to point to __bt's attributes dict. | |
Variables | |
volatile PmVmGlobal_t | gVmGlobal |
Most PyMite globals all in one convenient place. |
Detailed Description
VM Globals.
VM globals operations. PyMite's global struct def and initial values.
Definition in file global.c.
Function Documentation
PmReturn_t global_init | ( | void | ) |
PmReturn_t global_loadBuiltins | ( | void | ) |
PmReturn_t global_setBuiltins | ( | pPmFunc_t | pmod ) |
Sets the builtins dict into the given module's attrs.
If not yet done, loads the "__bt" module via global_loadBuiltins(). Restrictions described in that functions documentation apply.
- Parameters:
-
pmod Module whose attrs receive builtins
- Returns:
- Return status
Variable Documentation
volatile PmVmGlobal_t gVmGlobal |
Generated on Tue Jul 12 2022 23:13:47 by 1.7.2