apfl/src/modules.h
Laria Carolin Chabowski 0361000e7c apflc: Use an apfl_ctx for compilation
We'll soon need the full apfl_ctx, where we previously only needed the
gc. apflc was the only place manually constructing a struct gc without
an apfl_ctx, so lets change that.
2023-11-23 21:03:40 +01:00

28 lines
463 B
C

#ifndef APFL_MODULES_H
#define APFL_MODULES_H
#ifdef __cplusplus
extern "C" {
#endif
#include "apfl.h"
void
apfl_build_native_and_bytecode_combined_module(
apfl_ctx ctx,
apfl_stackidx native,
struct apfl_string_view bytecode
);
bool apfl_modules_query(apfl_ctx, apfl_stackidx modname);
struct apfl_string_view apfl_mod_globals(void);
struct apfl_string_view apfl_mod_re(void);
void apfl_module_re(apfl_ctx);
#ifdef __cplusplus
}
#endif
#endif