Function: byte-code
byte-code is a function defined in bytecode.c.
Signature
(byte-code BYTESTR VECTOR MAXDEPTH)
Documentation
Function used internally in byte-compiled code.
The first argument, BYTESTR, is a string of byte code; the second, VECTOR, a vector of constants; the third, MAXDEPTH, the maximum stack depth used in this function. If the third argument is incorrect, Emacs may crash.
Source Code
// Defined in /usr/src/emacs/src/bytecode.c
{
if (! (STRINGP (bytestr) && VECTORP (vector) && FIXNATP (maxdepth)))
error ("Invalid byte-code");
if (STRING_MULTIBYTE (bytestr))
{
/* BYTESTR must have been produced by Emacs 20.2 or earlier
because it produced a raw 8-bit string for byte-code and now
such a byte-code string is loaded as multibyte with raw 8-bit
characters converted to multibyte form. Convert them back to
the original unibyte form. */
bytestr = Fstring_as_unibyte (bytestr);
}
return exec_byte_code (bytestr, vector, maxdepth, Qnil, 0, NULL);
}