base/asm-common.h: Define `WORDSZ' appropriately for x86ish platforms.
[catacomb] / base / asm-common.h
index 4a0a420..083643e 100644 (file)
@@ -124,6 +124,14 @@ name:
 
 #if CPUFAM_X86 || CPUFAM_AMD64
 
+// Word size.
+#if CPUFAM_X86
+#  define WORDSZ 4
+#endif
+#if CPUFAM_AMD64
+#  define WORDSZ 8
+#endif
+
 // Set the function hooks.
 #define FUNC_PREHOOK(_) .balign 16
 
@@ -863,13 +871,13 @@ name:
 
 // Default values for the various hooks.
 #ifndef FUNC_PREHOOK
-#  define FUNC_PREHOOK(name)
+#  define FUNC_PREHOOK(_)
 #endif
 #ifndef FUNC_POSTHOOK
-#  define FUNC_POSTHOOK(name)
+#  define FUNC_POSTHOOK(_)
 #endif
 #ifndef ENDFUNC_HOOK
-#  define ENDFUNC_HOOK(name)
+#  define ENDFUNC_HOOK(_)
 #endif
 
 #ifndef F