Norimasa Okamoto
/
pymite
python-on-a-chip online compiler
- http://pymbed.appspot.com/
- https://code.google.com/p/python-on-a-chip/
- http://www.youtube.com/watch?v=Oyqc2bFRW9I
- https://bitbucket.org/va009039/pymbed/
more info: python-on-a-chip
vm/module.h
- Committer:
- va009039
- Date:
- 2016-04-14
- Revision:
- 15:94ca5c8003e5
- Parent:
- 0:65f1469d6bfb
File content as of revision 15:94ca5c8003e5:
/* # This file is Copyright 2002 Dean Hall. # This file is part of the PyMite VM. # This file is licensed under the MIT License. # See the LICENSE file for details. */ #ifndef __MODULE_H__ #define __MODULE_H__ /** * \file * \brief Module Object Type * * Module object type header. */ /** * Creates a Module Obj for the given Code Obj. * * Use a func struct to represent the Module obj because * the module's construction code must execute later, * but set the type to OBJ_TYPE_MOD so that it is * not otherwise callable. * * @param pco Ptr to code obj * @param pmod Return by reference; ptr to new module obj * @return Return status */ PmReturn_t mod_new(pPmObj_t pco, pPmObj_t *pmod); /** * Imports a module of the given name. * Searches for an image with a matching name. * A code obj is created for the code image. * A module obj is created for the code obj. * * @param pstr String obj containing name of code obj to load. * @param pmod Return by reference; ptr to imported module * @return Return status */ PmReturn_t mod_import(pPmObj_t pstr, pPmObj_t *pmod); #endif /* __MODULE_H__ */