Go to the source code of this file.
Functions | |
| PmReturn_t | mod_new (pPmObj_t pco, pPmObj_t *pmod) |
| PmReturn_t | mod_import (pPmObj_t pstr, pPmObj_t *pmod) |
Module object type header.
| PmReturn_t mod_import | ( | pPmObj_t | pstr, | |
| 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.
| pstr | String obj containing name of code obj to load. | |
| return | parameter; ptr to imported module |
| PmReturn_t mod_new | ( | pPmObj_t | pco, | |
| pPmObj_t * | pmod | |||
| ) |
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.
| pco | ptr to code obj | |
| return | parameter; ptr to new module obj |
1.5.9