mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 16:37:30 +03:00
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);
|
|
}
|