Speed up make_lisp_symbol when debugging
* src/lisp.h (make_lisp_symbol): In eassert use XBARE_SYMBOL rather than XSYMBOL. This is safe because the symbol must be bare. The change speeds up make_lisp_symbol when debugging.
This commit is contained in:
@@ -1166,7 +1166,7 @@ make_lisp_symbol (struct Lisp_Symbol *sym)
|
||||
cast to char * rather than to intptr_t. */
|
||||
char *symoffset = (char *) ((char *) sym - (char *) lispsym);
|
||||
Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset);
|
||||
eassert (XSYMBOL (a) == sym);
|
||||
eassert (XBARE_SYMBOL (a) == sym);
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user