aboutsummaryrefslogtreecommitdiff
path: root/src/lua/api.c
blob: 5a29cca9264040b9b352471456853b1af2c8eaa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "api.h"


bool lua_api_init(lua_api_t *api)
{
    api->state = luaL_newstate();
    luaL_openlibs(api->state);
    return true;
}

void lua_api_close(lua_api_t *api)
{
    lua_close(api->state);
}