summaryrefslogtreecommitdiff
path: root/src/plugin-luahandle.cc
blob: 7e6b6756ed9a762435681bd75b0de4e0dbf0b01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <LuaHandle.h>

#ifndef WIN32 
#define WEAK __attribute__ ((weak)) 
#else 
#define WEAK 
#endif 

static void _init_plugin(Lua * L) {
    LuaInput::pushconstruct(L);
    LuaOutput::pushconstruct(L);
    LuaBuffer::pushconstruct(L);
    LuaHandle::pushconstruct(L);
}

extern "C" {

WEAK void init_plugin(Lua * L) {
    _init_plugin(L);
}

void luahandle_init(Lua * L) {
    _init_plugin(L);
}

}