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

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

static void _init_plugin(Lua * L) {
    LuaRegex::pushstatics(L);
}

extern "C" {

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

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

}