小编Sim*_*rgs的帖子

如何使用 Haxe 宏构建摘要?

我找不到任何使用宏创建摘要的示例代码或教程。

//Class code ReflectionClassInfo.hx
@:build(ReflectionClassInfoMacro.build())
abstract ReflectionClassInfo({}) from ({}) to ({}) {}

//Driver code
var r=new ReflectionClassInfo();
//Immeditately makes the compiler complain about there is no constructor
Run Code Online (Sandbox Code Playgroud)

如何修复编译器错误?

macros haxe

2
推荐指数
1
解决办法
129
查看次数

标签 统计

haxe ×1

macros ×1