/+junk/gjs-vapi

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/gjs-vapi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using Gjs;

int main (string[] args) {
  try {
    var grcs = GLib.Resource.load ("./gjs.vapi.test.gresource");
    grcs._register ();
  } catch (GLib.Error e) {
    print (e.message + "\n");
  }
  
  var ctx = new Context.with_search_path ({"resource:///gjs/test/vapi/test/",
                                            null});
  int i;
  
  try {
    var b = ctx.eval_file ("test.js", out i);
    b = bool.parse (b.to_string ());
  } catch (GLib.Error e) {
    print (e.message + "\n");
  }
  return 0;
}