{"action":"created","comment":{"url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/comments/190170503","pull_request_review_id":122489764,"id":190170503,"diff_hunk":"@@ -0,0 +1,675 @@\n+#include <lua.h>\n+#include <lualib.h>\n+#include <lauxlib.h>\n+#include <string.h>\n+\n+#include \"capi/capi.h\"\n+\n+\n+typedef struct st_luaapi_ud_s    st_luaapi_ud_t;\n+/**\n+ * userdata for each c share table.\n+ *\n+ */\n+struct st_luaapi_ud_s {\n+    st_tvalue_t table;\n+};\n+\n+typedef union {\n+    int             i_value;\n+    double          d_value;\n+    st_bool         b_value;\n+    char*           s_value;\n+    st_luaapi_ud_t* u_value;\n+} st_luaapi_values_t;\n+\n+\n+#define ST_LUA_MODULE_NAME     \"luast\"\n+#define ST_LUA_ITER_METATABLE  \"luast_iter_metatable\"\n+#define ST_LUA_TABLE_METATABLE \"luast_table_metatable\"\n+\n+#define st_luaapi_get_ud_err_ret(L, ud, index, mt_name) do {          \\\n+    ud = luaL_checkudata(L, index, mt_name);                          \\\n+    luaL_argcheck(L, ud != NULL, index, \"type \" mt_name \" expected\"); \\","path":"src/luaapi/luaapi.c","position":33,"original_position":33,"commit_id":"1afec4f568e620278853ccf1c80f93106bd79f31","original_commit_id":"1afec4f568e620278853ccf1c80f93106bd79f31","user":{"login":"lishulong","id":13903162,"avatar_url":"https://avatars2.githubusercontent.com/u/13903162?v=4","gravatar_id":"","url":"https://api.github.com/users/lishulong","html_url":"https://github.com/lishulong","followers_url":"https://api.github.com/users/lishulong/followers","following_url":"https://api.github.com/users/lishulong/following{/other_user}","gists_url":"https://api.github.com/users/lishulong/gists{/gist_id}","starred_url":"https://api.github.com/users/lishulong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishulong/subscriptions","organizations_url":"https://api.github.com/users/lishulong/orgs","repos_url":"https://api.github.com/users/lishulong/repos","events_url":"https://api.github.com/users/lishulong/events{/privacy}","received_events_url":"https://api.github.com/users/lishulong/received_events","type":"User","site_admin":false},"body":"OK，我调整一下","created_at":"2018-05-23T08:55:46Z","updated_at":"2018-05-23T08:55:46Z","html_url":"https://github.com/bsc-s2/lua-sharedtable/pull/109#discussion_r190170503","pull_request_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/comments/190170503"},"html":{"href":"https://github.com/bsc-s2/lua-sharedtable/pull/109#discussion_r190170503"},"pull_request":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109"}},"in_reply_to_id":190135843},"pull_request":{"url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109","id":189587850,"html_url":"https://github.com/bsc-s2/lua-sharedtable/pull/109","diff_url":"https://github.com/bsc-s2/lua-sharedtable/pull/109.diff","patch_url":"https://github.com/bsc-s2/lua-sharedtable/pull/109.patch","issue_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/109","number":109,"state":"open","locked":false,"title":"Lsl lua share table","user":{"login":"lishulong","id":13903162,"avatar_url":"https://avatars2.githubusercontent.com/u/13903162?v=4","gravatar_id":"","url":"https://api.github.com/users/lishulong","html_url":"https://github.com/lishulong","followers_url":"https://api.github.com/users/lishulong/followers","following_url":"https://api.github.com/users/lishulong/following{/other_user}","gists_url":"https://api.github.com/users/lishulong/gists{/gist_id}","starred_url":"https://api.github.com/users/lishulong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishulong/subscriptions","organizations_url":"https://api.github.com/users/lishulong/orgs","repos_url":"https://api.github.com/users/lishulong/repos","events_url":"https://api.github.com/users/lishulong/events{/privacy}","received_events_url":"https://api.github.com/users/lishulong/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-22T08:46:46Z","updated_at":"2018-05-23T08:55:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34cbf1205ee54459140a040e02664e46675ebcdd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pengsven","id":6927668,"avatar_url":"https://avatars3.githubusercontent.com/u/6927668?v=4","gravatar_id":"","url":"https://api.github.com/users/pengsven","html_url":"https://github.com/pengsven","followers_url":"https://api.github.com/users/pengsven/followers","following_url":"https://api.github.com/users/pengsven/following{/other_user}","gists_url":"https://api.github.com/users/pengsven/gists{/gist_id}","starred_url":"https://api.github.com/users/pengsven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pengsven/subscriptions","organizations_url":"https://api.github.com/users/pengsven/orgs","repos_url":"https://api.github.com/users/pengsven/repos","events_url":"https://api.github.com/users/pengsven/events{/privacy}","received_events_url":"https://api.github.com/users/pengsven/received_events","type":"User","site_admin":false},{"login":"chuang0721","id":7994220,"avatar_url":"https://avatars1.githubusercontent.com/u/7994220?v=4","gravatar_id":"","url":"https://api.github.com/users/chuang0721","html_url":"https://github.com/chuang0721","followers_url":"https://api.github.com/users/chuang0721/followers","following_url":"https://api.github.com/users/chuang0721/following{/other_user}","gists_url":"https://api.github.com/users/chuang0721/gists{/gist_id}","starred_url":"https://api.github.com/users/chuang0721/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuang0721/subscriptions","organizations_url":"https://api.github.com/users/chuang0721/orgs","repos_url":"https://api.github.com/users/chuang0721/repos","events_url":"https://api.github.com/users/chuang0721/events{/privacy}","received_events_url":"https://api.github.com/users/chuang0721/received_events","type":"User","site_admin":false},{"login":"liubaohai","id":26271283,"avatar_url":"https://avatars2.githubusercontent.com/u/26271283?v=4","gravatar_id":"","url":"https://api.github.com/users/liubaohai","html_url":"https://github.com/liubaohai","followers_url":"https://api.github.com/users/liubaohai/followers","following_url":"https://api.github.com/users/liubaohai/following{/other_user}","gists_url":"https://api.github.com/users/liubaohai/gists{/gist_id}","starred_url":"https://api.github.com/users/liubaohai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liubaohai/subscriptions","organizations_url":"https://api.github.com/users/liubaohai/orgs","repos_url":"https://api.github.com/users/liubaohai/repos","events_url":"https://api.github.com/users/liubaohai/events{/privacy}","received_events_url":"https://api.github.com/users/liubaohai/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109/commits","review_comments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109/comments","review_comment_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/109/comments","statuses_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/statuses/1afec4f568e620278853ccf1c80f93106bd79f31","head":{"label":"bsc-s2:lsl-lua-share-table","ref":"lsl-lua-share-table","sha":"1afec4f568e620278853ccf1c80f93106bd79f31","user":{"login":"bsc-s2","id":36946445,"avatar_url":"https://avatars3.githubusercontent.com/u/36946445?v=4","gravatar_id":"","url":"https://api.github.com/users/bsc-s2","html_url":"https://github.com/bsc-s2","followers_url":"https://api.github.com/users/bsc-s2/followers","following_url":"https://api.github.com/users/bsc-s2/following{/other_user}","gists_url":"https://api.github.com/users/bsc-s2/gists{/gist_id}","starred_url":"https://api.github.com/users/bsc-s2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsc-s2/subscriptions","organizations_url":"https://api.github.com/users/bsc-s2/orgs","repos_url":"https://api.github.com/users/bsc-s2/repos","events_url":"https://api.github.com/users/bsc-s2/events{/privacy}","received_events_url":"https://api.github.com/users/bsc-s2/received_events","type":"Organization","site_admin":false},"repo":{"id":98276035,"name":"lua-sharedtable","full_name":"bsc-s2/lua-sharedtable","owner":{"login":"bsc-s2","id":36946445,"avatar_url":"https://avatars3.githubusercontent.com/u/36946445?v=4","gravatar_id":"","url":"https://api.github.com/users/bsc-s2","html_url":"https://github.com/bsc-s2","followers_url":"https://api.github.com/users/bsc-s2/followers","following_url":"https://api.github.com/users/bsc-s2/following{/other_user}","gists_url":"https://api.github.com/users/bsc-s2/gists{/gist_id}","starred_url":"https://api.github.com/users/bsc-s2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsc-s2/subscriptions","organizations_url":"https://api.github.com/users/bsc-s2/orgs","repos_url":"https://api.github.com/users/bsc-s2/repos","events_url":"https://api.github.com/users/bsc-s2/events{/privacy}","received_events_url":"https://api.github.com/users/bsc-s2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bsc-s2/lua-sharedtable","description":null,"fork":false,"url":"https://api.github.com/repos/bsc-s2/lua-sharedtable","forks_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/forks","keys_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/teams","hooks_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/hooks","issue_events_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/events{/number}","events_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/events","assignees_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/assignees{/user}","branches_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/branches{/branch}","tags_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/tags","blobs_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/statuses/{sha}","languages_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/languages","stargazers_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/stargazers","contributors_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/contributors","subscribers_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/subscribers","subscription_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/subscription","commits_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/contents/{+path}","compare_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/merges","archive_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/downloads","issues_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues{/number}","pulls_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls{/number}","milestones_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/milestones{/number}","notifications_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/labels{/name}","releases_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/releases{/id}","deployments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/deployments","created_at":"2017-07-25T07:12:18Z","updated_at":"2018-05-22T08:09:36Z","pushed_at":"2018-05-23T08:53:16Z","git_url":"git://github.com/bsc-s2/lua-sharedtable.git","ssh_url":"git@github.com:bsc-s2/lua-sharedtable.git","clone_url":"https://github.com/bsc-s2/lua-sharedtable.git","svn_url":"https://github.com/bsc-s2/lua-sharedtable","homepage":null,"size":269,"stargazers_count":8,"watchers_count":8,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":8,"default_branch":"master"}},"base":{"label":"bsc-s2:master","ref":"master","sha":"397fc7032dc80f6d1351e85ba21dc194ac718728","user":{"login":"bsc-s2","id":36946445,"avatar_url":"https://avatars3.githubusercontent.com/u/36946445?v=4","gravatar_id":"","url":"https://api.github.com/users/bsc-s2","html_url":"https://github.com/bsc-s2","followers_url":"https://api.github.com/users/bsc-s2/followers","following_url":"https://api.github.com/users/bsc-s2/following{/other_user}","gists_url":"https://api.github.com/users/bsc-s2/gists{/gist_id}","starred_url":"https://api.github.com/users/bsc-s2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsc-s2/subscriptions","organizations_url":"https://api.github.com/users/bsc-s2/orgs","repos_url":"https://api.github.com/users/bsc-s2/repos","events_url":"https://api.github.com/users/bsc-s2/events{/privacy}","received_events_url":"https://api.github.com/users/bsc-s2/received_events","type":"Organization","site_admin":false},"repo":{"id":98276035,"name":"lua-sharedtable","full_name":"bsc-s2/lua-sharedtable","owner":{"login":"bsc-s2","id":36946445,"avatar_url":"https://avatars3.githubusercontent.com/u/36946445?v=4","gravatar_id":"","url":"https://api.github.com/users/bsc-s2","html_url":"https://github.com/bsc-s2","followers_url":"https://api.github.com/users/bsc-s2/followers","following_url":"https://api.github.com/users/bsc-s2/following{/other_user}","gists_url":"https://api.github.com/users/bsc-s2/gists{/gist_id}","starred_url":"https://api.github.com/users/bsc-s2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsc-s2/subscriptions","organizations_url":"https://api.github.com/users/bsc-s2/orgs","repos_url":"https://api.github.com/users/bsc-s2/repos","events_url":"https://api.github.com/users/bsc-s2/events{/privacy}","received_events_url":"https://api.github.com/users/bsc-s2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bsc-s2/lua-sharedtable","description":null,"fork":false,"url":"https://api.github.com/repos/bsc-s2/lua-sharedtable","forks_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/forks","keys_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/teams","hooks_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/hooks","issue_events_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/events{/number}","events_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/events","assignees_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/assignees{/user}","branches_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/branches{/branch}","tags_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/tags","blobs_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/statuses/{sha}","languages_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/languages","stargazers_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/stargazers","contributors_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/contributors","subscribers_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/subscribers","subscription_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/subscription","commits_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/contents/{+path}","compare_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/merges","archive_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/downloads","issues_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues{/number}","pulls_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls{/number}","milestones_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/milestones{/number}","notifications_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/labels{/name}","releases_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/releases{/id}","deployments_url":"https://api.github.com/repos/bsc-s2/lua-sharedtable/deployments","created_at":"2017-07-25T07:12:18Z","updated_at":"2018-05-22T08:09:36Z","pushed_at":"2018-05-23T08:53:16Z","git_url":"git://github.com/bsc-s2/lua-sharedtable.git","ssh_url":"git@github.com:bsc-s2/lua-sharedtable.git","clone_url":"https://github.com/bsc-s2/lua-sharedtable.git","svn_url":"https://github.com/bsc-s2/lua-sharedtable","homepage":null,"size":269,"stargazers_count":8,"watchers_count":8,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":0,"open_issues":10,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109"},"html":{"href":"https://github.com/bsc-s2/lua-sharedtable/pull/109"},"issue":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/109"},"comments":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/bsc-s2/lua-sharedtable/statuses/1afec4f568e620278853ccf1c80f93106bd79f31"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lishulong"}}