Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tars2go不支持include参数 和 单文件定义多个模块 #305

Closed
lbbniu opened this issue Oct 26, 2021 · 2 comments
Closed

tars2go不支持include参数 和 单文件定义多个模块 #305

lbbniu opened this issue Oct 26, 2021 · 2 comments

Comments

@lbbniu
Copy link
Collaborator

lbbniu commented Oct 26, 2021

#include "Demo.tars"
module Demo
{
	enum MsgResultCode
	{
		MsgResultSuccess			= 0
	};
};
module DemoV2_1 {
    struct DemoExtend
    {
        0 optional string   ip;             // ip
    };
};
module DemoV2
{
    struct DemoRoom
    {
        0 optional long                             id;         // 全局唯一id
    };
};
module DemoV2_1
{
    struct Demo
    {
        1 optional  long                            id;         // 全局唯一id
    };
};

如果 Demo.tars 不在当前目录,编译不过,在c++ tars2cpp里面,支持--include参数,指定include查找路径,tars2go不支持
一个文件多个module定义,目前编译不同,在c++ tars2cpp中支持,tars2go不支持

@lbbniu
Copy link
Collaborator Author

lbbniu commented Oct 26, 2021

tars2go支持include参数 和 单文件定义多个模块 #296

@lbbniu
Copy link
Collaborator Author

lbbniu commented Jan 4, 2022

相关pr: #296 #316

@lbbniu lbbniu closed this as completed Jan 4, 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

No branches or pull requests

1 participant