C++导出自定义类到Lua,生成空文件的问题

写了个Commstruct类,想导出到Lua里用
能正常导出,但是cpp中没有方法,是空的。。而且没有Commstruct.lua生成
这个类使用了自定义的命名空间,我在conversions.yaml也加了,但是问题没能解决。。
求教解决办法。。。

… Generating bindings for target lua

… … Processing section custom_commstruct

====
Errors in parsing headers:

  1. <severity = Warning,
    location = <SourceLocation file None, line 179, column 9>,
    details = “‘WCHAR_MAX’ macro redefined”>
    ====

dos2unix: Skipping api, not a regular file.
dos2unix: converting file lua_custom_commstruct_auto.cpp to Unix format …
dos2unix: converting file lua_custom_commstruct_auto.hpp to Unix format …
dos2unix: converting file lua_custom_helloword_auto.cpp to Unix format …
dos2unix: converting file lua_custom_helloword_auto.hpp to Unix format …

Generating lua bindings succeeds.

cpp里面只有:
TOLUA_API int register_all_custom_commstruct(lua_State* tolua_S)
{
tolua_open(tolua_S);

tolua_module(tolua_S,nullptr,0);
tolua_beginmodule(tolua_S,nullptr);


tolua_endmodule(tolua_S);
return 1;

}

明明报错了好不好