{"action":"created","comment":{"url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/comments/210593992","pull_request_review_id":146840802,"id":210593992,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDU5Mzk5Mg==","diff_hunk":"@@ -187,26 +207,34 @@ all functions that Kotlin/Native and our library provides to us. It heavily uses\n nested anonymous structures to mimic packages.\n \n The `demo_ExportedSymbols` structure contains several helper functions:\n+\n+<div class=\"sample\" markdown=\"1\" mode=\"C\" theme=\"idea\" data-highlight-only=\"1\" auto-indent=\"false\">\n+\n ```c\n void (*DisposeStablePointer)(demo_KNativePtr ptr);\n void (*DisposeString)(const char* string);\n demo_KBoolean (*IsInstance)(demo_KNativePtr ref, const demo_KType* type);\n ```\n+</div>\n \n Those functions deals with Kotlin/Native objects. One calls \n `DisposeStablePointer` to release a Kotlin object and `DisposeString` to release Kotlin String, \n which has the `char*` type in C. One may use the `IsInstance` function to check, if a\n-Kotlin type, a `demo_KNativePtr` is an instance of another type. \n+Kotlin type, a `demo_KNativePtr` is an instance of another type. The actual set of\n+operations generated depend on the actual usage from your code.\n  \n Kotlin/Native has garbage collection, but it does not help to deal\n with Kotlin objects from C language. Kotlin/Native has an interop with Objective-C and \n Swift, and integrates with their reference counters. You may want to find more details\n in the [documentation](https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md)\n or to check the related [TUTORIAL_KOTLIN_macOS_FRAMEWORK_LINK].\n \n+NOTE. It is possible to have several Kotlin/Native dynamic libraries in one application, ","path":"pages/docs/tutorials/native/dynamic-libraries.md","position":null,"original_position":129,"commit_id":"e89bc8d6292936f1a96d3c51b81196f421824557","original_commit_id":"142953a625091bd6de2b62d91eed46c912907259","user":{"login":"jonnyzzz","id":256431,"node_id":"MDQ6VXNlcjI1NjQzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/256431?v=4","gravatar_id":"","url":"https://api.github.com/users/jonnyzzz","html_url":"https://github.com/jonnyzzz","followers_url":"https://api.github.com/users/jonnyzzz/followers","following_url":"https://api.github.com/users/jonnyzzz/following{/other_user}","gists_url":"https://api.github.com/users/jonnyzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyzzz/subscriptions","organizations_url":"https://api.github.com/users/jonnyzzz/orgs","repos_url":"https://api.github.com/users/jonnyzzz/repos","events_url":"https://api.github.com/users/jonnyzzz/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyzzz/received_events","type":"User","site_admin":false},"body":"removed that line for now. It is hard to test, but looks possible","created_at":"2018-08-16T13:25:17Z","updated_at":"2018-08-16T13:25:17Z","html_url":"https://github.com/JetBrains/kotlin-web-site/pull/1091#discussion_r210593992","pull_request_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/comments/210593992"},"html":{"href":"https://github.com/JetBrains/kotlin-web-site/pull/1091#discussion_r210593992"},"pull_request":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091"}},"in_reply_to_id":210518606},"pull_request":{"url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091","id":206932152,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2OTMyMTUy","html_url":"https://github.com/JetBrains/kotlin-web-site/pull/1091","diff_url":"https://github.com/JetBrains/kotlin-web-site/pull/1091.diff","patch_url":"https://github.com/JetBrains/kotlin-web-site/pull/1091.patch","issue_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/1091","number":1091,"state":"open","locked":false,"title":"Kotlin/Native tutorial. Writing a framework and dynamic library","user":{"login":"jonnyzzz","id":256431,"node_id":"MDQ6VXNlcjI1NjQzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/256431?v=4","gravatar_id":"","url":"https://api.github.com/users/jonnyzzz","html_url":"https://github.com/jonnyzzz","followers_url":"https://api.github.com/users/jonnyzzz/followers","following_url":"https://api.github.com/users/jonnyzzz/following{/other_user}","gists_url":"https://api.github.com/users/jonnyzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyzzz/subscriptions","organizations_url":"https://api.github.com/users/jonnyzzz/orgs","repos_url":"https://api.github.com/users/jonnyzzz/repos","events_url":"https://api.github.com/users/jonnyzzz/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyzzz/received_events","type":"User","site_admin":false},"body":"https://youtrack.jetbrains.com/issue/EVAN-5132\r\n\r\nReady for the factual check. English will be improved later","created_at":"2018-08-08T08:38:33Z","updated_at":"2018-08-16T13:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"320ac1160437eb56fda3c3b1c83930c271534faf","assignee":{"login":"jonnyzzz","id":256431,"node_id":"MDQ6VXNlcjI1NjQzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/256431?v=4","gravatar_id":"","url":"https://api.github.com/users/jonnyzzz","html_url":"https://github.com/jonnyzzz","followers_url":"https://api.github.com/users/jonnyzzz/followers","following_url":"https://api.github.com/users/jonnyzzz/following{/other_user}","gists_url":"https://api.github.com/users/jonnyzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyzzz/subscriptions","organizations_url":"https://api.github.com/users/jonnyzzz/orgs","repos_url":"https://api.github.com/users/jonnyzzz/repos","events_url":"https://api.github.com/users/jonnyzzz/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyzzz/received_events","type":"User","site_admin":false},"assignees":[{"login":"jonnyzzz","id":256431,"node_id":"MDQ6VXNlcjI1NjQzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/256431?v=4","gravatar_id":"","url":"https://api.github.com/users/jonnyzzz","html_url":"https://github.com/jonnyzzz","followers_url":"https://api.github.com/users/jonnyzzz/followers","following_url":"https://api.github.com/users/jonnyzzz/following{/other_user}","gists_url":"https://api.github.com/users/jonnyzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyzzz/subscriptions","organizations_url":"https://api.github.com/users/jonnyzzz/orgs","repos_url":"https://api.github.com/users/jonnyzzz/repos","events_url":"https://api.github.com/users/jonnyzzz/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyzzz/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091/commits","review_comments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091/comments","review_comment_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/1091/comments","statuses_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/statuses/e89bc8d6292936f1a96d3c51b81196f421824557","head":{"label":"JetBrains:tutorial-kn-apple-framework","ref":"tutorial-kn-apple-framework","sha":"e89bc8d6292936f1a96d3c51b81196f421824557","user":{"login":"JetBrains","id":878437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3ODQzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/878437?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":14397208,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5NzIwOA==","name":"kotlin-web-site","full_name":"JetBrains/kotlin-web-site","owner":{"login":"JetBrains","id":878437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3ODQzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/878437?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/kotlin-web-site","description":"The Kotlin Programming Language Website","fork":false,"url":"https://api.github.com/repos/JetBrains/kotlin-web-site","forks_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/forks","keys_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/teams","hooks_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/events","assignees_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/tags","blobs_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/languages","stargazers_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/subscription","commits_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/merges","archive_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/downloads","issues_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/releases{/id}","deployments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/deployments","created_at":"2013-11-14T14:26:54Z","updated_at":"2018-08-15T21:01:12Z","pushed_at":"2018-08-16T13:24:37Z","git_url":"git://github.com/JetBrains/kotlin-web-site.git","ssh_url":"git@github.com:JetBrains/kotlin-web-site.git","clone_url":"https://github.com/JetBrains/kotlin-web-site.git","svn_url":"https://github.com/JetBrains/kotlin-web-site","homepage":"http://kotlinlang.org/","size":75671,"stargazers_count":561,"watchers_count":561,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1309,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1309,"open_issues":18,"watchers":561,"default_branch":"master"}},"base":{"label":"JetBrains:master","ref":"master","sha":"6d5905a5e691b276b76a14cb0f1f6a62b2b25e49","user":{"login":"JetBrains","id":878437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3ODQzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/878437?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"repo":{"id":14397208,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5NzIwOA==","name":"kotlin-web-site","full_name":"JetBrains/kotlin-web-site","owner":{"login":"JetBrains","id":878437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3ODQzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/878437?v=4","gravatar_id":"","url":"https://api.github.com/users/JetBrains","html_url":"https://github.com/JetBrains","followers_url":"https://api.github.com/users/JetBrains/followers","following_url":"https://api.github.com/users/JetBrains/following{/other_user}","gists_url":"https://api.github.com/users/JetBrains/gists{/gist_id}","starred_url":"https://api.github.com/users/JetBrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JetBrains/subscriptions","organizations_url":"https://api.github.com/users/JetBrains/orgs","repos_url":"https://api.github.com/users/JetBrains/repos","events_url":"https://api.github.com/users/JetBrains/events{/privacy}","received_events_url":"https://api.github.com/users/JetBrains/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JetBrains/kotlin-web-site","description":"The Kotlin Programming Language Website","fork":false,"url":"https://api.github.com/repos/JetBrains/kotlin-web-site","forks_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/forks","keys_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/teams","hooks_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/hooks","issue_events_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/events{/number}","events_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/events","assignees_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/assignees{/user}","branches_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/branches{/branch}","tags_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/tags","blobs_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/statuses/{sha}","languages_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/languages","stargazers_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/stargazers","contributors_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/contributors","subscribers_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/subscribers","subscription_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/subscription","commits_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/contents/{+path}","compare_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/merges","archive_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/downloads","issues_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues{/number}","pulls_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls{/number}","milestones_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/milestones{/number}","notifications_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/labels{/name}","releases_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/releases{/id}","deployments_url":"https://api.github.com/repos/JetBrains/kotlin-web-site/deployments","created_at":"2013-11-14T14:26:54Z","updated_at":"2018-08-15T21:01:12Z","pushed_at":"2018-08-16T13:24:37Z","git_url":"git://github.com/JetBrains/kotlin-web-site.git","ssh_url":"git@github.com:JetBrains/kotlin-web-site.git","clone_url":"https://github.com/JetBrains/kotlin-web-site.git","svn_url":"https://github.com/JetBrains/kotlin-web-site","homepage":"http://kotlinlang.org/","size":75671,"stargazers_count":561,"watchers_count":561,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1309,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1309,"open_issues":18,"watchers":561,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091"},"html":{"href":"https://github.com/JetBrains/kotlin-web-site/pull/1091"},"issue":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/1091"},"comments":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/issues/1091/comments"},"review_comments":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091/comments"},"review_comment":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/pulls/1091/commits"},"statuses":{"href":"https://api.github.com/repos/JetBrains/kotlin-web-site/statuses/e89bc8d6292936f1a96d3c51b81196f421824557"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"jonnyzzz"}}