| 367 | |
| 368 | |
| 369 | LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) { |
| 370 | const TValue *o = index2value(L, idx); |
| 371 | if (ttisnumber(o)) { |
| 372 | unsigned len = luaO_tostringbuff(o, buff); |
| 373 | buff[len++] = '\0'; /* add final zero */ |
| 374 | return len; |
| 375 | } |
| 376 | else |
| 377 | return 0; |
| 378 | } |
| 379 | |
| 380 | |
| 381 | LUA_API size_t lua_stringtonumber (lua_State *L, const char *s) { |
nothing calls this directly
no test coverage detected