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:
parent
cf26f57316
commit
bdcd662a21
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue