summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/processor.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/processor.h b/src/arch/processor.h
index 87c0738..900db0c 100644
--- a/src/arch/processor.h
+++ b/src/arch/processor.h
@@ -102,10 +102,13 @@ GArchInstruction *g_arch_processor_get_instruction(const GArchProcessor *, size_
/* Types d'erreurs détectées */
+
+#define PROC_ERROR(idx) ((idx << 2) | (1 << 0))
+
typedef enum _ArchProcessingError
{
- APE_DISASSEMBLY = ((0 << 2) | (1 << 0)),/* Code non reconnu */
- APE_LABEL = ((1 << 2) | (1 << 0)) /* Etiquette non référencée */
+ APE_DISASSEMBLY = PROC_ERROR(0), /* Code non reconnu */
+ APE_LABEL = PROC_ERROR(1) /* Etiquette non référencée */
} ArchProcessingError;