debug.c: Add a get-interrupt-code primitive.
authorMatt Birkholz <puck@birchwood-abbey.net>
Wed, 17 Jun 2015 02:01:19 +0000 (19:01 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Mon, 6 Jul 2015 05:45:43 +0000 (22:45 -0700)
src/microcode/debug.c

index 7c31f9a0953bb64e9b9485a5f58ed20209d672ac..2c9d01f59b98dcb78a8f9911e6718886b9c37e3f 100644 (file)
@@ -1166,3 +1166,9 @@ DEFINE_PRIMITIVE("SET-DEBUG-FLAGS!", Prim_set_debug_flags, 2, 2,
   set_flag ((arg_integer (1)), (BOOLEAN_ARG (2)));
   PRIMITIVE_RETURN (UNSPECIFIC);
 }
+
+DEFINE_PRIMITIVE("GET-INTERRUPT-CODE", Prim_get_interrupt_code, 0, 0, "")
+{
+  PRIMITIVE_HEADER (0);
+  PRIMITIVE_RETURN (LONG_TO_FIXNUM (GET_INT_CODE));
+}