zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
688 stars 59 forks source link

Improve code style consistency #23

Closed OptoCloud closed 1 year ago

OptoCloud commented 3 years ago

Different code styles are scattered troughout the library

void someFunc() {
  if (somCond) {
  }
}

void someSecondFunc()
{
  if (somCond) {
  }
}

void someThirdFunc() {
  if (somCond)
  {
  }
}

More inline documentation would be nice as well

warmwaffles commented 3 years ago

@OptoCloud one solution is to use clang-format to enforce a standard. Although it will cause a lot of churn within the library.