LÖVE backend + build target (compat/luajit.lua shims, Roblox build unchanged), examples/example_love, examples/example_shared (same app on Roblox and LÖVE), LuaJIT checksum tests
This commit is contained in:
+2
-2
@@ -3069,7 +3069,7 @@ function FormatCached(format, v)
|
||||
local r = m[v]
|
||||
if r == nil then
|
||||
if fmt_memo_n >= 4096 then table.clear(fmt_memo); m = {}; fmt_memo[format] = m; fmt_memo_n = 0 end
|
||||
r = ImFormatString(format, v); m[v] = r; fmt_memo_n += 1
|
||||
r = ImFormatString(format, v); m[v] = r; fmt_memo_n = fmt_memo_n + 1
|
||||
end
|
||||
return r
|
||||
end
|
||||
@@ -4064,7 +4064,7 @@ function ImGui.NewTextBuffer(str, size)
|
||||
end
|
||||
function ImGui.TextBufferToString(buf)
|
||||
local n = 0
|
||||
while buf[n + 1] ~= nil and buf[n + 1] ~= 0 do n += 1 end
|
||||
while buf[n + 1] ~= nil and buf[n + 1] ~= 0 do n = n + 1 end
|
||||
return n == 0 and "" or ImGui._ByteArrayToString(buf, 1, n + 1)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user