| 372 | |
| 373 | |
| 374 | void plutoS_commit (lua_State *L, char *prealloc, size_t l) { |
| 375 | if (l <= LUAI_MAXSHORTLEN) { |
| 376 | TString *ts; |
| 377 | lua_lock(L); |
| 378 | ts = internshrstr(L, prealloc, l); |
| 379 | setsvalue2s(L, L->top.p, ts); |
| 380 | api_incr_top(L); |
| 381 | luaC_checkGC(L); |
| 382 | lua_unlock(L); |
| 383 | } |
| 384 | } |
no test coverage detected