| 4121 | } |
| 4122 | |
| 4123 | COMPAT53_API int luaL_loadbufferx(lua_State* L, const char* buff, size_t sz, const char* name, const char* mode) { |
| 4124 | int status = LUA_OK; |
| 4125 | if (sz > 0 && buff[0] == LUA_SIGNATURE[0]) { |
| 4126 | status = compat53_checkmode(L, mode, "binary", LUA_ERRSYNTAX); |
| 4127 | } |
| 4128 | else { |
| 4129 | status = compat53_checkmode(L, mode, "text", LUA_ERRSYNTAX); |
| 4130 | } |
| 4131 | if (status != LUA_OK) |
| 4132 | return status; |
| 4133 | return luaL_loadbuffer(L, buff, sz, name); |
| 4134 | } |
| 4135 | |
| 4136 | #if !defined(l_inspectstat) \ |
| 4137 | && (defined(unix) || defined(__unix) || defined(__unix__) || defined(__TOS_AIX__) || defined(_SYSTYPE_BSD) || (defined(__APPLE__) && defined(__MACH__))) |
no test coverage detected