asm: add different assembler scope types
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <ivy/misc.h>
|
||||
#include <ivy/status.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define IVY_ASM_INDEX_AUTO (-1)
|
||||
|
||||
@@ -13,14 +14,13 @@ struct ivy_assembler;
|
||||
|
||||
enum ivy_assembler_scope_type {
|
||||
IVY_ASM_SCOPE_NONE = 0,
|
||||
IVY_ASM_SCOPE_UNIT,
|
||||
IVY_ASM_SCOPE_CLASS,
|
||||
IVY_ASM_SCOPE_LAMBDA,
|
||||
IVY_ASM_SCOPE_MSGH,
|
||||
IVY_ASM_SCOPE_CONSTPOOL,
|
||||
};
|
||||
|
||||
IVY_API enum ivy_static ivy_assembler_create(struct ivy_assembler **as);
|
||||
IVY_API enum ivy_static ivy_assembler_create(FILE *out, struct ivy_assembler **as);
|
||||
IVY_API void ivy_assembler_destroy(struct ivy_assembler *as);
|
||||
|
||||
IVY_API enum ivy_status ivy_assembler_begin_scope(
|
||||
|
||||
Reference in New Issue
Block a user