Clean up identifiers
FossilOrigin-Name: d35fd65699e79d96fc0588fff075f73b0dd7eb6ebfa0f6cffd0b0a3940e5fecd
This commit is contained in:
parent
570b9e3bb3
commit
c690c2b9ed
12 changed files with 364 additions and 276 deletions
18
src/Command.h
Normal file
18
src/Command.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#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:(char *_Nonnull *_Nonnull)arguments
|
||||
numArguments:(size_t)numArguments
|
||||
isDown:(bool)isDown;
|
||||
@end
|
||||
|
||||
OF_ASSUME_NONNULL_END
|
Loading…
Add table
Add a link
Reference in a new issue