summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lua_user.c
blob: 8d77dcdf3f016c08777cfd0d882fb0419e8803f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "plugin.h"
#include "lstate.h"
#include LUA_USER_H

/* lua Out Of Memory */
static struct lua_OOM l_oom = {NULL, 0};

int set_lua_OOM(lua_State * L)
{
    l_oom.L = L;
    l_oom.count++;
    return 0;
}

struct lua_OOM *get_lua_OOM(void)
{
    return &l_oom;
}