shithub: libmujs

ref: 759acbd4ddaa706d2f457616d4e5ea32ea4127f6
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_freestate(J);

	return 0;
}