add load_buffer function

This commit is contained in:
MisterKH 2016-05-05 15:12:25 +02:00
parent 1c61773354
commit c44f577d19

View File

@ -168,6 +168,12 @@ public:
return load_result(L, -1, 1, 1, x);
}
load_result load_buffer(const char *buff, size_t size, const char *name)
{
load_status x = static_cast<load_status>(luaL_loadbuffer(L, buff, size, name));
return load_result(L, -1, 1, 1, x);
}
iterator begin () const {
return global.begin();
}