Differences From Artifact [f6eb8c644d]:
- File
src/Command.h
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 917) [annotate] [blame] [check-ins using]
To Artifact [4155619926]:
- File src/Command.h — part of check-in [c634a689e7] at 2025-03-29 17:13:40 on branch trunk — More style fixes (user: js, size: 847) [annotate] [blame] [check-ins using]
1 2 3 4 | #import "Identifier.h" OF_ASSUME_NONNULL_BEGIN | | | | | | | | | | | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #import "Identifier.h" OF_ASSUME_NONNULL_BEGIN #define COMMAND(name, nargs, block_) \ OF_CONSTRUCTOR() \ { \ enqueueInit(^ { \ Identifier.identifiers[@#name] = [Command \ commandWithName: @#name \ argumentsTypes: nargs \ block: block_]; \ }); \ } OF_DIRECT_MEMBERS @interface Command: Identifier @property (readonly, nonatomic) int argumentsTypes; + (instancetype)commandWithName: (OFString *)name argumentsTypes: (int)argumentsTypes block: (id)block; - (instancetype)initWithName: (OFString *)name OF_UNAVAILABLE; - (instancetype)initWithName: (OFString *)name argumentsTypes: (int)argumentsTypes block: (id)block OF_DESIGNATED_INITIALIZER; - (int)callWithArguments: (OFArray<OFString *> *)arguments isDown: (bool)isDown; @end OF_ASSUME_NONNULL_END |