mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-25 08:08:47 +00:00
part of multimodule execution impl in interpreter: frame extension, state exstension, call and return
This commit is contained in:
parent
0a26953318
commit
59f3dfb43e
9 changed files with 108 additions and 59 deletions
|
|
@ -5,9 +5,9 @@
|
|||
#include "utils.h"
|
||||
|
||||
struct ModSearchResult {
|
||||
ssize_t symbol_offset; // < 0 => not found
|
||||
size_t symbol_offset;
|
||||
uint32_t mod_id;
|
||||
bytefile *mod_file;
|
||||
bytefile *mod_file; // = NULL => not found
|
||||
};
|
||||
|
||||
void mod_add_search_path(const char *path);
|
||||
|
|
@ -16,4 +16,6 @@ bytefile *mod_get(uint32_t id);
|
|||
|
||||
int32_t mod_load(const char *name); // < 0 => not found
|
||||
|
||||
uint32_t mod_add(bytefile *module);
|
||||
|
||||
struct ModSearchResult mod_search_pub_symbol(const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue