aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bytecode.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 964dca8a830..4fc722e61cc 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -39,6 +39,11 @@ by Hallvard:
39#include "charset.h" 39#include "charset.h"
40#include "syntax.h" 40#include "syntax.h"
41 41
42#ifdef CHECK_FRAME_FONT
43#include "frame.h"
44#include "xterm.h"
45#endif
46
42/* 47/*
43 * define BYTE_CODE_SAFE to enable some minor sanity checking (useful for 48 * define BYTE_CODE_SAFE to enable some minor sanity checking (useful for
44 * debugging the byte compiler...) 49 * debugging the byte compiler...)
@@ -418,6 +423,16 @@ If the third argument is incorrect, Emacs may crash.")
418 Lisp_Object *top; 423 Lisp_Object *top;
419 Lisp_Object result; 424 Lisp_Object result;
420 425
426#ifdef CHECK_FRAME_FONT
427 {
428 struct frame *f = SELECTED_FRAME ();
429 if (FRAME_X_P (f)
430 && FRAME_FONT (f)->direction != 0
431 && FRAME_FONT (f)->direction != 1)
432 abort ();
433 }
434#endif
435
421 CHECK_STRING (bytestr, 0); 436 CHECK_STRING (bytestr, 0);
422 if (!VECTORP (vector)) 437 if (!VECTORP (vector))
423 vector = wrong_type_argument (Qvectorp, vector); 438 vector = wrong_type_argument (Qvectorp, vector);