Subversion Repositories Kolibri OS

Rev

Rev 8475 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8476 maxcodehac 1
/* INCLUDE */
1913 jaeger 2
#include "tp.c"
2048 jaeger 3
 
8476 maxcodehac 4
const char header[] = "TinyPy for KolibriOS";
8473 maxcodehac 5
 
8476 maxcodehac 6
int main(int argc, const char *argv[]) {
7
    /* INIT */
1913 jaeger 8
    tp_vm *tp = tp_init(argc, argv);
2001 jaeger 9
    kolibri_init(tp);
2073 jaeger 10
    CONSOLE_INIT(header);
1913 jaeger 11
    tp_call(tp,"py2bc","tinypy",tp_None);
8476 maxcodehac 12
//  con_printf("Done");
1913 jaeger 13
    tp_deinit(tp);
8476 maxcodehac 14
 
15
    // Exit console
16
    con_exit(0);
17
 
18
    // Exit program
19
    return 0;
1913 jaeger 20
}
21
 
22
/**/