| 1718 | static int capsubst_l (lua_State *L) { return capture_aux(L, Csubst, 0); } |
| 1719 | |
| 1720 | static int rcapture_l (lua_State *L) { |
| 1721 | switch (lua_type(L, 2)) { |
| 1722 | case LUA_TFUNCTION: return capture_aux(L, Cfunction, 2); |
| 1723 | case LUA_TTABLE: return capture_aux(L, Cquery, 2); |
| 1724 | case LUA_TSTRING: return capture_aux(L, Cstring, 2); |
| 1725 | default: return luaL_argerror(L, 2, "invalid replacement value"); |
| 1726 | } |
| 1727 | } |
| 1728 | |
| 1729 | |
| 1730 | static int fold_l (lua_State *L) { |
nothing calls this directly
no test coverage detected