forked from KolibriOS/kolibrios
91ae0dee0b
git-svn-id: svn://kolibrios.org@8456 a494cfbc-eb01-0410-851d-a64ba20cac60
19 lines
278 B
C
Executable File
19 lines
278 B
C
Executable File
#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);
|
|
}
|