forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFSMethod.h
32 lines (25 loc) · 1.2 KB
/
FSMethod.h
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
31
32
/* FSMethod.h Copyright (c) 2007-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Cocoa/Cocoa.h>
#include <ffi/ffi.h>
@class FSBlock, FSSymbolTable, FSCNBase;
id fscript_dynamicIvarValue(id instance, NSString *ivarName, BOOL *found);
NSSet *fscript_dynamicIvarNames(Class class);
BOOL fscript_isFScriptClass(Class class);
void fscript_registerFScriptClassPair(Class class);
BOOL fscript_setDynamicIvarValue(id instance, NSString *ivarName, id value);
void fscript_setDynamicIvarNames(Class class, NSSet *ivarNames);
@interface FSMethod : NSObject
{
@package
SEL selector;
FSSymbolTable *symbolTable;
FSCNBase *code;
NSUInteger argumentCount; // Number of arguments, including the two hidden arguments
__strong char *fsEncodedTypes;
__strong char *types;
__strong char **typesByArgument;
}
- (BOOL) addToClass:(Class)class;
- (id) initWithSelector:(SEL)theSelector fsEncodedTypes:(NSString *)theFSEncodedTypes types:(NSString *)theTypes typesByArgument:(NSArray *)theTypesByArgument argumentCount:(NSUInteger)theArgumentCount code:(FSCNBase *)theCode symbolTable:(FSSymbolTable *)theSymbolTable;
@end