llvm / llvm/llvm-project

[libc] Make our public headers' macro definitions nicer.

Open
#200,589 4 comments 0 reactions 1 assignee Claimed by @kaladron View on GitHub
libc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Currently many of our headers' macro definitions are just straight up `#define`.
For instance: https://github.com/llvm/llvm-project/blob/main/libc/include/llvm-libc-macros/fenv-macros.h

It would be nicer to have them check whether they are already defined, or provide
some default/backup if needed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.