Skip to content

MacroType usage #3947

Closed
Closed
@ncannasse

Description

While trying to replace MacroType by genericBuild, I found the following module (CastleDB usage)

private typedef Init = haxe.macro.MacroType < [cdb.Module.build("data.cdb")] > ;
typedef Time = LevelData_time;
...

Here, we build a whole module based on data.cdb content, and then we reference the types from this module. However when using genericBuild, the types are not created until we build the Init class, so we cannot reference them.

So unless I'm mistaken it seems that MacroType is still necessary for this kind of usage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions