** Open string library */
| 860 | ** Open string library |
| 861 | */ |
| 862 | LUALIB_API int luaopen_string (lua_State *L) { |
| 863 | luaL_register(L, LUA_STRLIBNAME, strlib); |
| 864 | #if defined(LUA_COMPAT_GFIND) |
| 865 | lua_getfield(L, -1, "gmatch"); |
| 866 | lua_setfield(L, -2, "gfind"); |
| 867 | #endif |
| 868 | createmetatable(L); |
| 869 | return 1; |
| 870 | } |
| 871 |
nothing calls this directly
no test coverage detected