flesh out load buffer a little bit

This commit is contained in:
ThePhD 2016-05-05 16:14:13 -04:00
parent c44f577d19
commit 309947d704

View File

@ -168,9 +168,8 @@ public:
return load_result(L, -1, 1, 1, x); return load_result(L, -1, 1, 1, x);
} }
load_result load_buffer(const char *buff, size_t size, const char *name) load_result load_buffer(const char *buff, size_t size, const char *name, const char* mode = nullptr) {
{ load_status x = static_cast<load_status>(luaL_loadbufferx(L, buff, size, name, mode));
load_status x = static_cast<load_status>(luaL_loadbuffer(L, buff, size, name));
return load_result(L, -1, 1, 1, x); return load_result(L, -1, 1, 1, x);
} }