Paste: lua bindings for clay

Author: ks
Mode: text
Date: Mon, 21 Feb 2011 12:07:08
Plain Text |
import lua.*;

main() {
    var x = lua_open();
    luaL_openlibs(x);
    luaL_dostring(x, "
        print('Hello world from Lua!')
    ");
    lua_close(x);
}

// clay test.clay -L/opt/local/lib -llua

New Annotation

Summary:
Author:
Mode:
Body: