aboutsummaryrefslogtreecommitdiff
path: root/shared/asm.s
diff options
context:
space:
mode:
Diffstat (limited to 'shared/asm.s')
-rw-r--r--shared/asm.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/asm.s b/shared/asm.s
index 67b195c..e67b7a6 100644
--- a/shared/asm.s
+++ b/shared/asm.s
@@ -20,3 +20,11 @@
.macro JAL ADDR
jmp ADDR
.endmacro
+
+;; The __fallthrough__ special statement allows developers to explicitly tell
+;; the assembler that a "fall through" situation does not happen by mistake.
+.ifndef __NASM__
+ .macro __fallthrough__ arg
+ ;; NOTE: nothing to do :)
+ .endmacro
+.endif