| 1019 | } |
| 1020 | |
| 1021 | LUA_API int lua_docompiled_bytestream(lua_State *L, void *stream_addr) |
| 1022 | { |
| 1023 | GluaModuleByteStreamP stream = (GluaModuleByteStreamP) stream_addr; |
| 1024 | if (luaL_loadbufferx(L, stream->buff.data(), stream->buff.size(), "compiled_chunk", "binary")) |
| 1025 | { |
| 1026 | printf("error\n"); |
| 1027 | return LUA_ERRRUN; |
| 1028 | } |
| 1029 | lua_pcall(L, 0, 0, 0); |
| 1030 | return LUA_OK; |
| 1031 | } |
| 1032 | |
| 1033 | static bool findloader_for_import_stream(lua_State *L, const char *name) { |
| 1034 | int i; |
no test coverage detected