aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-10-23 17:16:17 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-10-23 17:16:17 -0300
commite3ce88c9e850b7e79751083014699c5eae1bff31 (patch)
treee73392a16c560ed532ef2238132f0e58d2eb23b3 /lobject.h
parent5ffcd458f001fce02e5f20a6130e145c6a3caf53 (diff)
downloadlua-e3ce88c9e850b7e79751083014699c5eae1bff31.tar.gz
lua-e3ce88c9e850b7e79751083014699c5eae1bff31.tar.bz2
lua-e3ce88c9e850b7e79751083014699c5eae1bff31.zip
New function 'lua_numbertostrbuff'
It converts a Lua number to a string in a buffer, without creating a new Lua string.
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lobject.h b/lobject.h
index 2411410b..b1407b77 100644
--- a/lobject.h
+++ b/lobject.h
@@ -845,6 +845,7 @@ LUAI_FUNC int luaO_rawarith (lua_State *L, int op, const TValue *p1,
845LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, 845LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1,
846 const TValue *p2, StkId res); 846 const TValue *p2, StkId res);
847LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o); 847LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o);
848LUAI_FUNC unsigned luaO_tostringbuff (const TValue *obj, char *buff);
848LUAI_FUNC lu_byte luaO_hexavalue (int c); 849LUAI_FUNC lu_byte luaO_hexavalue (int c);
849LUAI_FUNC void luaO_tostring (lua_State *L, TValue *obj); 850LUAI_FUNC void luaO_tostring (lua_State *L, TValue *obj);
850LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, 851LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt,