Skip to content

Symbol name clash #2490

Closed
Closed
@bart9h

Description

@bart9h

Raylib uses generic names like Font, Music, Sound, Shader, Model, Texture, BoundingBox, Matrix, BeginDrawing, PlaySound, etc. These names could also be used in anywhere, and should be avoided in a library, because it can lead to clashes. There are other (mostly closed) issues here about compilation errors that are caused by this.

C++ has namespaces, but as raylib is written in C, maybe you should consider using a prefix for all the names in the library? Maybe raylib_, Ray_ or something like that.

For backward compatibility maybe provide an header file that does #define SomeName Ray_SomeName.

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