Skip to content

Proposal: Use C11 _Generic to struct API #486

@quasar32

Description

@quasar32

Use _Generic to create macros that allow for brevity and the creation of length generic code.

Example:

#define glms_add(a, b) _Generic((a), \
 	vec2s: glms_vec2_add, \
	vec3s: glms_vec3_add, \
	vec4s: glms_vec4_add \
)(a, b)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions