diff options
Diffstat (limited to '')
-rw-r--r-- | lobject.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 | ||
825 | LUAI_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 | |||
835 | LUAI_FUNC int luaO_utf8esc (char *buff, l_uint32 x); | ||
826 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); | 836 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); |
827 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); | 837 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); |
828 | LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); | 838 | LUAI_FUNC l_mem luaO_applyparam (lu_byte p, l_mem x); |