summaryrefslogtreecommitdiff
path: root/src/plugin-luaocci.cc
blob: 6c0127ef3548f43a09f155356905c6b90ba293d1 (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
27
28
29
30
#include <LuaOCCI.h>

#ifdef FROM_LUAINTERFACE
#define NO_DLL
#endif

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

static void _init_plugin(Lua * L) {
    static bool done = false;
    if (done) return;
    done = true;
    LuaOCCI_pushstatics(L);
}

extern "C" {

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

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

}