kolibrios-fun/programs/develop/kosjs/kosjs.c

19 lines
278 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
#include <mujs.h>
#include <import.h>
int main(int argc, char **argv)
{
if (argc == 1) {
printf("usage: %s [program.js]\n", argv[0]);
} else {
import_functions();
js_dofile(J, argv[1]);
js_freestate (J);
}
exit(0);
}