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

添加内部宏的接口注册 #9

Open
2439905184 opened this issue Oct 2, 2022 · 2 comments
Open

添加内部宏的接口注册 #9

2439905184 opened this issue Oct 2, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@2439905184
Copy link
Owner

仅定义申明,而不是使用外部解释实现,内置宏的实现写在第三方游戏引擎里面

@2439905184 2439905184 self-assigned this Oct 2, 2022
@2439905184 2439905184 added enhancement New feature or request good first issue Good for newcomers labels Oct 2, 2022
@2439905184
Copy link
Owner Author

函数原型
Engine.regMacro(string name, string p1 string p2,string p3)
Engine.regMacro(string name,string params...) //可变参数

@2439905184
Copy link
Owner Author

2439905184 commented Oct 2, 2022

//使用类实现
Engine.realizeMacro(string name,Class cls)
//将一个宏绑定到一个c++或者java或者lua或者gdscript方法上面
Engine.bindMacro(string name,Method method)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant