If LispWorks has not been initialized, or has been quit by QuitLispWorks,
LispWorksState returns -100. Otherwise, it returns the same values as InitLispWorks. In particular, if LispWorks is already properly initialized it returns 1, and if LispWorks is still in the process of initialization it returns -2 or -4. Otherwise it returns a more negative number indicating an error.
LispWorksState is defined in each LispWorks dynamic library. For information about creating a LispWorks dynamic library, see deliver and save-image. For an overview of LispWorks as a dynamic library, see LispWorks as a dynamic library.
LispWorks User Guide and Reference Manual - 13 Feb 2015