Is there some consideration being made about inclu...
# kotlin-native
n
Is there some consideration being made about including wrappers to cover some common C Macros, which are in the bundled C libraries (varies by target)?
s
For example?
n
Bit manipulation. With the Linux target there are four macros that make it a bit easier to do bit manipulation:
Copy code
void FD_CLR(int fd, fd_set *set);
int  FD_ISSET(int fd, fd_set *set);
void FD_SET(int fd, fd_set *set);
void FD_ZERO(fd_set *set);
These macros are often used with other functions to do synchronous I/O multiplexing ( https://linux.die.net/man/3/fd_zero ).
s
Feel free to contribute these ones.
🆗 1
n
Which area of the Kotlin Native code base holds Macro wrappers?
s
n
Looks like a new naming pattern for the macro wrappers, and the wrappers are hidden in plain sight inside the source code (eg posix_FD_ZERO) simple smile 🔍.