ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.9k stars 288 forks source link

Format the code #1386

Closed f1yby closed 7 months ago

f1yby commented 7 months ago

Some of the code follow the format rule described in ./.clang-format, but others are not. Would you mind if I format the code, or should I submit a PR?

ptitSeb commented 7 months ago

I'm not a big fan of automatic code formating tbh. I find it sometimes ruins manual formating done on purpose.

So you can create a PR, but not sure I'll accept it if I find it makes things less readable.

f1yby commented 7 months ago

PR. Note: The macro _DOIT defined in src/wrapped/wrappedlib_init.h use #, and the formation of the macro cause extra space around / and cause error when the macro is expanded, so I turned off the formation at this line.