shithub: libmujs

ref: 0feb630124c74afff1d21473060c3f37f74e6e54
dir: /main.c/

View raw version
#include "js.h"

int
main(int argc, char **argv)
{
	js_State *J;
	int i;

	J = js_newstate();

	for (i = 1; i < argc; ++i) {
		js_dofile(J, argv[i]);
		js_gc(J, 1);
	}

	js_close(J);

	return 0;
}