| 13800 | |
| 13801 | |
| 13802 | static int str_char (lua_State *L) { |
| 13803 | int n = lua_gettop(L); /* number of arguments */ |
| 13804 | int i; |
| 13805 | luaL_Buffer b; |
| 13806 | luaL_buffinit(L, &b); |
| 13807 | for (i=1; i<=n; i++) { |
| 13808 | int c = luaL_checkint(L, i); |
| 13809 | luaL_argcheck(L, uchar(c) == c, i, "invalid value"); |
| 13810 | luaL_addchar(&b, uchar(c)); |
| 13811 | } |
| 13812 | luaL_pushresult(&b); |
| 13813 | return 1; |
| 13814 | } |
| 13815 | |
| 13816 | |
| 13817 | static int writer (lua_State *L, const void* b, size_t size, void* B) { |
nothing calls this directly
no test coverage detected