Skip to content

FR: cpp_register() could allow non-.cpp extensions #292

Closed
@MichaelChirico

Description

@MichaelChirico

Here, the resulting cpp11 file is hard-coded to have extension .cpp:

cpp_path <- file.path(path, "src", "cpp11.cpp")

But sometimes we may need to write .cc extensions (e.g. if the other source files are also written as .cc).

Is there any reason not to offer an extra argument (extension = ".cpp") to allow this customization?

Happy as ever to file a PR :)


FWIW, on GitHub I see ~160M files with extension .cpp, vs. ~50M for .cc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions