Skip to content

Tip to users who wants to use modularized version (simple hack) #1037

@parkyere

Description

@parkyere

Although it is very comfortable to including TinyXML2 (just adding .h and cpp, and it's over),

Some users wanted to have a modularized version of TinyXML2.

There is simple hack to do it. (As it is unofficial, and essentially modifies nothing in logic, I do not post the code.)

Just add export module TinyXML2; in first line, then export namespace tinyxml2 in header file,

Then cut-paste entire cpp file in bottom of header file, and rename it to have module extension.

Works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions