luvit/luvit — pull request #82 by pquerna (2012-01-15 23:52:16+00:00)
Title: Luvit as a library

Adds two new APIs:

* luvit_init
* luvit_run

These functions run on top of a Lua State instance -- the user of the API is responsible for creating and closing the Lua State. All of luvit itself should try to be 'state' local, which we need small cleanup in a few places to do this, but its pretty close.

Init loads all of the packages, and does basic setup.

Run actually enters the event loop, on return the lua state should be closed.

Tested on OSX 10.7 and Ubuntu 10.04 LTS using GYP build.