mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Emit bytecode in .c/.h files with unsigned char type.
This commit is contained in:
parent
92d9ff211a
commit
d41469c124
@ -125,12 +125,12 @@ extern "C"
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__declspec(dllexport)
|
__declspec(dllexport)
|
||||||
#endif
|
#endif
|
||||||
const char %s%s[] = {
|
const unsigned char %s%s[] = {
|
||||||
]], LJBC_PREFIX, ctx.modname))
|
]], LJBC_PREFIX, ctx.modname))
|
||||||
else
|
else
|
||||||
fp:write(string.format([[
|
fp:write(string.format([[
|
||||||
#define %s%s_SIZE %d
|
#define %s%s_SIZE %d
|
||||||
static const char %s%s[] = {
|
static const unsigned char %s%s[] = {
|
||||||
]], LJBC_PREFIX, ctx.modname, #s, LJBC_PREFIX, ctx.modname))
|
]], LJBC_PREFIX, ctx.modname, #s, LJBC_PREFIX, ctx.modname))
|
||||||
end
|
end
|
||||||
local t, n, m = {}, 0, 0
|
local t, n, m = {}, 0, 0
|
||||||
|
Loading…
Reference in New Issue
Block a user