13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestPlugin.h"
@implementation TestPlugin
- (int)test: (int)num
{
return num * 2;
}
@end
id
init_plugin(void)
{
return [[[TestPlugin alloc] init] autorelease];
}
|
>
>
>
>
>
>
>
>
>
>
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include "config.h"
#import "TestPlugin.h"
#ifdef OF_OBJFW_RUNTIME
# import "runtime-private.h"
static void __attribute__((destructor))
unload(void)
{
objc_free_class(objc_getClass("TestPlugin"));
}
#endif
@implementation TestPlugin
- (int)test: (int)num
{
return num * 2;
}
@end
id
init_plugin(void)
{
return [[[TestPlugin alloc] init] autorelease];
}
|