Skip to content

Commit

Permalink
Merge pull request #68 from cfergeau/uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex authored Oct 12, 2022
2 parents e32e0fe + 9024500 commit 6ebd576
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions objcutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,8 @@ void* getNSArrayItem(void *ptr, int i)
const char *getUUID()
{
const char *ret;
@autoreleasepool {
NSString *uuid = [[NSUUID UUID] UUIDString];
ret = [uuid UTF8String];
}
return ret;
NSString *uuid = [[NSUUID UUID] UUIDString];
return [uuid UTF8String];
}
*/
import "C"
Expand Down

0 comments on commit 6ebd576

Please sign in to comment.