public
Description: A lean-and-mean Ruby/ObjC bridge
Homepage: http://rubyobjc.com
Clone URL: git://github.com/timburks/rubyobjc.git
rubyobjc / test / testspeed.m
100644 32 lines (24 sloc) 0.48 kb
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
/*
* testspeed.m
*
* Copyright (c) 2007 Tim Burks, Neon Design Technology, Inc.
* For more information about this file, visit http://www.rubyobjc.com.
*/
 
#import <Foundation/Foundation.h>
 
@interface Tester : NSObject
{
}
- (int) add:(int) x to:(int)y;
@end
 
@implementation Tester
 
- (int) add:(int) x to:(int)y
{
  return x+y;
}
 
@end
 
// C functions that we call from Ruby with an ObjC::Function wrapper
int add(int x, int y)
{
   return x+y;
}
 
void Init_testspeed() {}