Skip to content

Call API doesn't support macro definitions #454

Open
@Lephar

Description

@Lephar

While it's possible to use CGLM like this:

#define CGLM_FORCE_DEPTH_ZERO_TO_ONE
#define CGLM_FORCE_LEFT_HANDED
#include "cglm/cglm.h"

the following code doesn't work as expected:

#define CGLM_FORCE_DEPTH_ZERO_TO_ONE
#define CGLM_FORCE_LEFT_HANDED
#include "cglm/call.h"

since the function bodies are already compiled.

It is possible to make it work by editting CMakeListst.txt/Makefile or with the tricks like C_FLAGS definitions while building but I've scanned the documentation/repository for clues and haven't found any official way to do it. If that's not the case please point me to the right direction, otherwise I am willing to contribute after a discussion about the proper way to implement it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions