aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lobject.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index 8c06a224..cc3dd370 100644
--- a/lobject.h
+++ b/lobject.h
@@ -418,6 +418,7 @@ typedef struct TString {
418 418
419 419
420#define strisshr(ts) ((ts)->shrlen >= 0) 420#define strisshr(ts) ((ts)->shrlen >= 0)
421#define isextstr(ts) (ttislngstring(ts) && tsvalue(ts)->shrlen != LSTRREG)
421 422
422 423
423/* 424/*
@@ -822,7 +823,16 @@ typedef struct Table {
822/* size of buffer for 'luaO_utf8esc' function */ 823/* size of buffer for 'luaO_utf8esc' function */
823#define UTF8BUFFSZ 8 824#define UTF8BUFFSZ 8
824 825
825LUAI_FUNC int luaO_utf8esc (char *buff, unsigned long x); 826
827/* macro to call 'luaO_pushvfstring' correctly */
828#define pushvfstring(L, argp, fmt, msg) \
829 { va_start(argp, fmt); \
830 msg = luaO_pushvfstring(L, fmt, argp); \
831 va_end(argp); \
832 if (msg == NULL) luaD_throw(L, LUA_ERRMEM); /* only after 'va_end' */ }
833
834
835LUAI_FUNC int luaO_utf8esc (char *buff, l_uint32 x);
826LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); 836LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x);
827LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); 837LUAI_FUNC lu_byte luaO_codeparam (unsigned int p);
828LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); 838LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x);