File tree 5 files changed +20
-8
lines changed
5 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ let package = Package(
9
9
. library( name: " CDK " , targets: [ " CDK " ] ) ,
10
10
] ,
11
11
targets: [
12
- . target( name: " ic0 " , dependencies: [ ] ) ,
13
- . target( name: " CDK " , dependencies: [ " ic0 " ] ) ,
12
+ . target( name: " IC " , dependencies: [ ] ) ,
13
+ . target( name: " CDK " , dependencies: [ " IC " ] ) ,
14
14
]
15
15
)
Original file line number Diff line number Diff line change 1
- import ic0
1
+ import IC
2
2
3
+ @_cdecl ( " time " )
3
4
public func time( ) -> Int64 {
4
- ic0 . time ( )
5
+ IC . time ( )
5
6
}
Original file line number Diff line number Diff line change
1
+ #ifndef ic_h
2
+ #define ic_h
3
+
4
+ #include <stdint.h>
5
+
6
+ #if __wasm32__
7
+
8
+ __attribute__((__import_module__ ("ic0" ),__import_name__ ("time" )))
9
+ extern int64_t time (void );
10
+
11
+ __attribute__((__import_module__ ("ic0" ),__import_name__ ("debug_print" )))
12
+ extern void debug_print (int32_t src , int32_t size );
13
+
14
+ #endif
15
+ #endif /* ic_h */
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments