All Manuals > LispWorks User Guide and Reference Manual > 17 iOS interface

NextPrevUpTopContentsIndex

17.2 Initializing LispWorks

In order to use Lisp code within an application built using Xcode, the main function of the application must call LispWorksInitialize. For example, main might be implemented like this:

#import "LispWorks.h"
 
int main(int argc, char *argv[])
{
    if (!LispWorksInitialize(argc, argv)) abort();
 
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([OthelloAppDelegate class]));
    }
}

LispWorksInitialize is automatically included in the object file generated by deliver. The file LispWorks.h can be found in the examples/ios/OthelloDemo/OthelloDemo/ directory of the LispWorks installation and should be copied into the Xcode project.


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex