Skip to content

Assert in ecs_cpp_trim_module #1555

@unelegal

Description

@unelegal

Describe the bug
ecs_cpp_trim_module tries to trim the name of the module from a type instead of just the namespace, which leads to the assert invalid C++ type name failing.

To Reproduce

#include <flecs.h>

struct module_a_component { };

class module_a {
public:
    module_a(flecs::world &world) {
        world.component<module_a_component>();
    }
};

int main() {
    flecs::world world;
    world.import<module_a>();

    return 0;
}

Expected behavior
This minimal example should work I guess, unless I'm being stupid 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions