Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Apr 28, 2024
1 parent 4fa975f commit 93695a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions blueutil.m
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,10 @@ - (void)devicePairingUserPasskeyNotification:(id)sender passkey:(BluetoothPasske
}
@end

#define OP_FUNC(name, operator) \
bool op_##name(const long a, const long b) { return a operator b; }
#define OP_FUNC(name, operator) \
bool op_##name(const long a, const long b) { \
return a operator b; \
}

OP_FUNC(gt, >);
OP_FUNC(ge, >=);
Expand Down Expand Up @@ -850,9 +852,11 @@ int main(int argc, char *argv[]) {
[inquirer start];

// inquiry length seems to be ingored starting with Monterey
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, args->duration * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
[inquirer stop];
});
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, args->duration * NSEC_PER_SEC),
dispatch_get_main_queue(),
^{
[inquirer stop];
});

CFRunLoopRun();

Expand Down

0 comments on commit 93695a5

Please sign in to comment.