summaryrefslogtreecommitdiff
path: root/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm.c')
-rw-r--r--asm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/asm.c b/asm.c
index 0afe5db..8f08699 100644
--- a/asm.c
+++ b/asm.c
@@ -225,10 +225,9 @@ void* AST2X64Mode(AST* a, int64_t* lab_offset) {
return NULL;
}
void* GetRegister(char* name) {
-#ifndef BOOTSTRAP
+#ifndef BOOTSTRAPED
return NULL;
-#endif // BOOTSTRAP
- if(Compiler.tagsFile) return NULL;
+#endif // BOOTSTRAPED
if(!Compiler.loadedHCRT) return 0;
CVariable* enc = GetHCRTVar("GetRegister");
@@ -239,10 +238,9 @@ void* GetRegister(char* name) {
return ((void* (*)(char*))enc->func->funcptr)(name);
}
int IsOpcode(char* name) {
-#ifndef BOOTSTRAP
+#ifndef BOOTSTRAPED
return NULL;
-#endif // BOOTSTRAP
- if(Compiler.tagsFile) return 0;
+#endif // BOOTSTRAPED
if(!Compiler.loadedHCRT) return 0;
CVariable* enc = GetHCRTVar("IsOpcode");