Artifact d308bef816b262a6cca65c6cd048438b347048c2a83a649800ec636254579fa8:
- File src/Command.h — part of check-in [22520cd0d9] at 2025-03-07 23:29:58 on branch trunk — Clean up argument passing of commands (user: js, size: 501) [annotate] [blame] [check-ins using]
#import "Identifier.h" OF_ASSUME_NONNULL_BEGIN @interface Command : Identifier @property (readonly, nonatomic) void (*function)(); @property (readonly, nonatomic) int argumentsTypes; - (instancetype)initWithName:(OFString *)name OF_UNAVAILABLE; - (instancetype)initWithName:(OFString *)name function:(void (*)())function argumentsTypes:(int)argumentsTypes; - (int)callWithArguments:(OFArray<OFString *> *)arguments isDown:(bool)isDown; @end OF_ASSUME_NONNULL_END