Skip to content

[CLEANUP] Ifdefs inside functions #66

@QRiary

Description

@QRiary

So we either do

#ifdef CONDITION
void some_function(...) {
  ...
}
#endif

...
#ifdef CONDITION
  some_function(...);
#endif
...

or

void some_function(...) {
#ifdef CONDITION
  ...
#endif
}

...
some_function(...)
...

and I vote for the second approach, like all the functions which depend on defines should do that

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions