aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-04 11:45:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-04 11:45:26 -0300
commit5ca1075b714e825006e8ba4f8e7ea5544879bb41 (patch)
treead085afa58f29e8e96071ae88c1e6e1dd73e0750 /lobject.h
parent38425e069243fe6d991f2e99b4bba192af3563c7 (diff)
downloadlua-5ca1075b714e825006e8ba4f8e7ea5544879bb41.tar.gz
lua-5ca1075b714e825006e8ba4f8e7ea5544879bb41.tar.bz2
lua-5ca1075b714e825006e8ba4f8e7ea5544879bb41.zip
Added field 'srclen' to structure 'lua_Debug'
This new field gets the length of 'source' in the same structure. Unlike the other strings in that structure, 'source' can be relatively large, and Lua already has its length readily available.
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index 53e67932..403b6047 100644
--- a/lobject.h
+++ b/lobject.h
@@ -747,7 +747,7 @@ LUAI_FUNC void luaO_tostring (lua_State *L, TValue *obj);
747LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, 747LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt,
748 va_list argp); 748 va_list argp);
749LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); 749LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...);
750LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); 750LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t srclen);
751 751
752 752
753#endif 753#endif