mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-03 08:30:09 +00:00
(Vfont_log): Extern it.
(FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
This commit is contained in:
parent
652b9560dc
commit
59314cafbe
13
src/font.h
13
src/font.h
@ -826,9 +826,22 @@ extern struct font_driver nsfont_driver;
|
||||
#define FONT_DEBUG
|
||||
#endif
|
||||
|
||||
extern Lisp_Object Vfont_log;
|
||||
extern void font_add_log P_ ((char *, Lisp_Object, Lisp_Object));
|
||||
extern void font_deferred_log P_ ((char *, Lisp_Object, Lisp_Object));
|
||||
|
||||
#define FONT_ADD_LOG(ACTION, ARG, RESULT) \
|
||||
do { \
|
||||
if (! EQ (Vfont_log, Qt)) \
|
||||
font_add_log ((ACTION), (ARG), (RESULT)); \
|
||||
} while (0)
|
||||
|
||||
#define FONT_DEFERRED_LOG(ACTION, ARG, RESULT) \
|
||||
do { \
|
||||
if (! EQ (Vfont_log, Qt)) \
|
||||
font_deferred_log ((ACTION), (ARG), (RESULT)); \
|
||||
} while (0)
|
||||
|
||||
#ifdef FONT_DEBUG
|
||||
#define font_assert(X) do {if (!(X)) abort ();} while (0)
|
||||
#else /* not FONT_DEBUG */
|
||||
|
Loading…
Reference in New Issue
Block a user