aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-19 12:14:08 +0000
committerGerd Moellmann2000-12-19 12:14:08 +0000
commitad7de7d79eb2b7c97c38206b223bcd7dc3dcbad4 (patch)
tree98796c76602698860b9fd81900d4aa9f3a2fd217 /src/bytecode.c
parent9ca4be21c5e3f9fe07dab71b88b567ff6190350e (diff)
downloademacs-ad7de7d79eb2b7c97c38206b223bcd7dc3dcbad4.tar.gz
emacs-ad7de7d79eb2b7c97c38206b223bcd7dc3dcbad4.zip
(toplevel) [CHECK_FRAME_FONT]: Include frame.h and
xterm.h. (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
Diffstat (limited to 'src/bytecode.c')
-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);