diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -822,6 +822,15 @@ typedef struct Table { | |||
822 | /* size of buffer for 'luaO_utf8esc' function */ | 822 | /* size of buffer for 'luaO_utf8esc' function */ |
823 | #define UTF8BUFFSZ 8 | 823 | #define UTF8BUFFSZ 8 |
824 | 824 | ||
825 | |||
826 | /* macro to call 'luaO_pushvfstring' correctly */ | ||
827 | #define pushvfstring(L, argp, fmt, msg) \ | ||
828 | { va_start(argp, fmt); \ | ||
829 | msg = luaO_pushvfstring(L, fmt, argp); \ | ||
830 | va_end(argp); \ | ||
831 | if (msg == NULL) luaD_throw(L, LUA_ERRMEM); /* only after 'va_end' */ } | ||
832 | |||
833 | |||
825 | LUAI_FUNC int luaO_utf8esc (char *buff, unsigned long x); | 834 | LUAI_FUNC int luaO_utf8esc (char *buff, unsigned long x); |
826 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); | 835 | LUAI_FUNC lu_byte luaO_ceillog2 (unsigned int x); |
827 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); | 836 | LUAI_FUNC lu_byte luaO_codeparam (unsigned int p); |