Skip to content

Conversation

@hugebug4ever
Copy link
Contributor

@hugebug4ever hugebug4ever commented May 24, 2022

  • 问题描述:

    12_CustomLoader 的例子, Index.lua 如果改为如下代码,打印出来的文件名为 chunk.
    原因是 Env->LoadString 的第二个参数没有传递进去,

    function dump()
        local info = debug.getinfo(1, "Snl")
        print(info.short_src)
    end
    dump()
    return {}
  • 修正:
    CustomLoader 传入的值,需要传递给 lua,方便调试或者其它用途
    具体传什么,可以让 customloader 自己定义, 与现在的设计一致。

@tencent-adm
Copy link
Member

tencent-adm commented May 24, 2022

CLA assistant check
All committers have signed the CLA.

@xuyanghuang-tencent xuyanghuang-tencent merged commit 2b18f27 into Tencent:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants