Skip to content

Commit bf4a94b

Browse files
authored
Merge pull request #307 from Bilal2453/fix-re-symbol
add the symbol for luaopen_re
2 parents 00dddd8 + 404fcf1 commit bf4a94b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/luvi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ LUALIB_API int luaopen_zlib(lua_State * const L);
6060
#endif
6161
#ifdef WITH_LPEG
6262
int luaopen_lpeg(lua_State* L);
63+
LUALIB_API int luaopen_re(lua_State *L);
6364
#endif
6465
#ifdef WITH_PLAIN_LUA
6566
LUALIB_API int luaopen_bit(lua_State *L);

src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ static lua_State* vm_acquire(){
8787
#ifdef WITH_LPEG
8888
lua_pushcfunction(L, luaopen_lpeg);
8989
lua_setfield(L, -2, "lpeg");
90+
lua_pushcfunction(L, luaopen_re);
91+
lua_setfield(L, -2, "re");
9092
#endif
9193

9294
#ifdef WITH_PCRE2

0 commit comments

Comments
 (0)