diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ucode/program.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ucode/program.h b/include/ucode/program.h index 4fb4a9b..c350fea 100644 --- a/include/ucode/program.h +++ b/include/ucode/program.h @@ -46,6 +46,8 @@ uc_program_put(uc_program_t *prog) { fn = fn##_tmp, \ fn##_tmp = (uc_function_t *)fn##_tmp->progref.prev) +#define uc_program_function_last(prog) (uc_function_t *)prog->functions.next + uc_function_t *uc_program_function_new(uc_program_t *, const char *, uc_source_t *, size_t); size_t uc_program_function_id(uc_program_t *, uc_function_t *); uc_function_t *uc_program_function_load(uc_program_t *, size_t); |