Skip to content

Commit

Permalink
fix(coobjc.h): fix c++ compile problem
Browse files Browse the repository at this point in the history
fix compile error in cpp or mm code files

fix alibaba#46
  • Loading branch information
pengyutang125 committed Mar 13, 2019
1 parent 85e9fb5 commit cf04511
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions coobjc/coobjc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#import <coobjc/COGenerator.h>
#import <coobjc/co_tuple.h>

#ifdef __cplusplus
extern "C" {
#endif

#pragma mark - Basic operator

/**
Expand Down Expand Up @@ -226,3 +230,7 @@ NS_INLINE COActor * _Nonnull co_actor_onqueue(dispatch_queue_t _Nullable queue,
return (COActor*)[co resume];
}


#ifdef __cplusplus
}
#endif

0 comments on commit cf04511

Please sign in to comment.