修正: 使用 CustomLoader 导至打印堆栈时无法显示文件名#429
Merged
xuyanghuang-tencent merged 1 commit intoTencent:masterfrom May 24, 2022
hugebug4ever:master
Merged
修正: 使用 CustomLoader 导至打印堆栈时无法显示文件名#429xuyanghuang-tencent merged 1 commit intoTencent:masterfrom hugebug4ever:master
xuyanghuang-tencent merged 1 commit intoTencent:masterfrom
hugebug4ever:master
Conversation
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述:
12_CustomLoader 的例子, Index.lua 如果改为如下代码,打印出来的文件名为 chunk.
原因是 Env->LoadString 的第二个参数没有传递进去,
修正:
CustomLoader 传入的值,需要传递给 lua,方便调试或者其它用途
具体传什么,可以让 customloader 自己定义, 与现在的设计一致。