shithub: libmujs

ref: f12fe6c072b0a3b3037c1aab35bf1e31f4a911bf
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;
}