| 347 | } |
| 348 | |
| 349 | void mp_encode_lua_bool(lua_State *L, mp_buf *buf) { |
| 350 | unsigned char b = lua_toboolean(L,-1) ? 0xc3 : 0xc2; |
| 351 | mp_buf_append(L,buf,&b,1); |
| 352 | } |
| 353 | |
| 354 | /* Lua 5.3 has a built in 64-bit integer type */ |
| 355 | void mp_encode_lua_integer(lua_State *L, mp_buf *buf) { |
no test coverage detected