rust-interop/objc/MyClass.h

21 lines
316 B
C
Raw Permalink Normal View History

2024-08-19 10:52:05 +00:00
// swift/MyClass.h
#import <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
// Declare functions to be used by Rust
void create_object();
void call_method();
const char* get_message();
#ifdef __cplusplus
}
#endif
@interface MyClass : NSObject
- (void)printMessage;
- (NSString *)getMessage;
@end