| 135 | } |
| 136 | |
| 137 | LUALIB_API int luaL_loadbufferx(lua_State *L, const char *buf, size_t size, |
| 138 | const char *name, const char *mode) |
| 139 | { |
| 140 | StringReaderCtx ctx; |
| 141 | ctx.str = buf; |
| 142 | ctx.size = size; |
| 143 | return lua_loadx(L, reader_string, &ctx, name, mode); |
| 144 | } |
| 145 | |
| 146 | LUALIB_API int luaL_loadbuffer(lua_State *L, const char *buf, size_t size, |
| 147 | const char *name) |
no test coverage detected