summaryrefslogtreecommitdiff
path: root/src/main.c
blob: ca493791a669fac0c85e52c19360172f486ada1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "honey.h"

int main(int argc, char** argv)
{
    honey_options opts;
    if (!honey_parse_options(&opts, argc, argv)) {
        return 0;
    }

    lua_State* L;

    if (!honey_setup(&L))
        return 1;

    bool success = honey_run(L, opts);

    if (!success)
        return 1;
    
    return 0;
}