MCPcopy Create free account
hub / github.com/axmolengine/axmol / luaL_loadbufferx

Function luaL_loadbufferx

3rdparty/lua/sol/sol.hpp:4123–4134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4121}
4122
4123COMPAT53_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__)))

Callers 4

scriptFunction · 0.70
do_stringMethod · 0.70
unsafe_scriptMethod · 0.70
loadMethod · 0.70

Calls 1

compat53_checkmodeFunction · 0.85

Tested by

no test coverage detected