{"action":"created","comment":{"url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/comments/53554346","id":53554346,"diff_hunk":"@@ -150,13 +167,21 @@ class Translator\n                         return \"\";\n                     }\n                     break;\n-                case CXCursor_EnumDecl: return (new Enum(cursor, parent, this)).translate; break;\n-                case CXCursor_UnionDecl: return (new Record!(UnionData)(cursor, parent, this)).translate; break;\n+                case CXCursor_EnumDecl: \n+                    return (new Enum(cursor, parent, this)).translate(); break;\n+\n+                case CXCursor_UnionDecl: \n+                    return (new Record!(UnionData)(cursor, parent, this)).translate(); break;\n+\n+                case CXCursor_MacroDefinition:\n+                case CXCursor_PreprocessingDirective:","path":"dstep/translator/Translator.d","position":88,"original_position":88,"commit_id":"7ef8ff0fcd2855b0b7d9e5a9dc9eac215a922bd2","original_commit_id":"7ef8ff0fcd2855b0b7d9e5a9dc9eac215a922bd2","user":{"login":"jacob-carlborg","id":306980,"avatar_url":"https://avatars.githubusercontent.com/u/306980?v=3","gravatar_id":"","url":"https://api.github.com/users/jacob-carlborg","html_url":"https://github.com/jacob-carlborg","followers_url":"https://api.github.com/users/jacob-carlborg/followers","following_url":"https://api.github.com/users/jacob-carlborg/following{/other_user}","gists_url":"https://api.github.com/users/jacob-carlborg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob-carlborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob-carlborg/subscriptions","organizations_url":"https://api.github.com/users/jacob-carlborg/orgs","repos_url":"https://api.github.com/users/jacob-carlborg/repos","events_url":"https://api.github.com/users/jacob-carlborg/events{/privacy}","received_events_url":"https://api.github.com/users/jacob-carlborg/received_events","type":"User","site_admin":false},"body":"When will cursor be `CXCursor_PreprocessingDirective`?","created_at":"2016-02-20T17:55:40Z","updated_at":"2016-02-20T17:55:40Z","html_url":"https://github.com/jacob-carlborg/dstep/pull/51#discussion_r53554346","pull_request_url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/comments/53554346"},"html":{"href":"https://github.com/jacob-carlborg/dstep/pull/51#discussion_r53554346"},"pull_request":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51","id":59396644,"html_url":"https://github.com/jacob-carlborg/dstep/pull/51","diff_url":"https://github.com/jacob-carlborg/dstep/pull/51.diff","patch_url":"https://github.com/jacob-carlborg/dstep/pull/51.patch","issue_url":"https://api.github.com/repos/jacob-carlborg/dstep/issues/51","number":51,"state":"open","locked":false,"title":"Basic defines translation.","user":{"login":"ciechowoj","id":7858228,"avatar_url":"https://avatars.githubusercontent.com/u/7858228?v=3","gravatar_id":"","url":"https://api.github.com/users/ciechowoj","html_url":"https://github.com/ciechowoj","followers_url":"https://api.github.com/users/ciechowoj/followers","following_url":"https://api.github.com/users/ciechowoj/following{/other_user}","gists_url":"https://api.github.com/users/ciechowoj/gists{/gist_id}","starred_url":"https://api.github.com/users/ciechowoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciechowoj/subscriptions","organizations_url":"https://api.github.com/users/ciechowoj/orgs","repos_url":"https://api.github.com/users/ciechowoj/repos","events_url":"https://api.github.com/users/ciechowoj/events{/privacy}","received_events_url":"https://api.github.com/users/ciechowoj/received_events","type":"User","site_admin":false},"body":"I implemented a translation of basic define directives (like #define FOO 0 -> enum FOO = 0;). There is some things that may be improved or may be unacceptable to be merged, but I'm creating this request to spark some discussion about the dstep implementation.","created_at":"2016-02-15T17:59:54Z","updated_at":"2016-02-20T17:55:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cf2db9d9df440c8c557e7b1984cca670cf98dd6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51/commits","review_comments_url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51/comments","review_comment_url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacob-carlborg/dstep/issues/51/comments","statuses_url":"https://api.github.com/repos/jacob-carlborg/dstep/statuses/7ef8ff0fcd2855b0b7d9e5a9dc9eac215a922bd2","head":{"label":"ciechowoj:master","ref":"master","sha":"7ef8ff0fcd2855b0b7d9e5a9dc9eac215a922bd2","user":{"login":"ciechowoj","id":7858228,"avatar_url":"https://avatars.githubusercontent.com/u/7858228?v=3","gravatar_id":"","url":"https://api.github.com/users/ciechowoj","html_url":"https://github.com/ciechowoj","followers_url":"https://api.github.com/users/ciechowoj/followers","following_url":"https://api.github.com/users/ciechowoj/following{/other_user}","gists_url":"https://api.github.com/users/ciechowoj/gists{/gist_id}","starred_url":"https://api.github.com/users/ciechowoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciechowoj/subscriptions","organizations_url":"https://api.github.com/users/ciechowoj/orgs","repos_url":"https://api.github.com/users/ciechowoj/repos","events_url":"https://api.github.com/users/ciechowoj/events{/privacy}","received_events_url":"https://api.github.com/users/ciechowoj/received_events","type":"User","site_admin":false},"repo":{"id":50794645,"name":"dstep","full_name":"ciechowoj/dstep","owner":{"login":"ciechowoj","id":7858228,"avatar_url":"https://avatars.githubusercontent.com/u/7858228?v=3","gravatar_id":"","url":"https://api.github.com/users/ciechowoj","html_url":"https://github.com/ciechowoj","followers_url":"https://api.github.com/users/ciechowoj/followers","following_url":"https://api.github.com/users/ciechowoj/following{/other_user}","gists_url":"https://api.github.com/users/ciechowoj/gists{/gist_id}","starred_url":"https://api.github.com/users/ciechowoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciechowoj/subscriptions","organizations_url":"https://api.github.com/users/ciechowoj/orgs","repos_url":"https://api.github.com/users/ciechowoj/repos","events_url":"https://api.github.com/users/ciechowoj/events{/privacy}","received_events_url":"https://api.github.com/users/ciechowoj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ciechowoj/dstep","description":"A tool for converting C and Objective-C headers to D modules","fork":true,"url":"https://api.github.com/repos/ciechowoj/dstep","forks_url":"https://api.github.com/repos/ciechowoj/dstep/forks","keys_url":"https://api.github.com/repos/ciechowoj/dstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ciechowoj/dstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ciechowoj/dstep/teams","hooks_url":"https://api.github.com/repos/ciechowoj/dstep/hooks","issue_events_url":"https://api.github.com/repos/ciechowoj/dstep/issues/events{/number}","events_url":"https://api.github.com/repos/ciechowoj/dstep/events","assignees_url":"https://api.github.com/repos/ciechowoj/dstep/assignees{/user}","branches_url":"https://api.github.com/repos/ciechowoj/dstep/branches{/branch}","tags_url":"https://api.github.com/repos/ciechowoj/dstep/tags","blobs_url":"https://api.github.com/repos/ciechowoj/dstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ciechowoj/dstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ciechowoj/dstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/ciechowoj/dstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ciechowoj/dstep/statuses/{sha}","languages_url":"https://api.github.com/repos/ciechowoj/dstep/languages","stargazers_url":"https://api.github.com/repos/ciechowoj/dstep/stargazers","contributors_url":"https://api.github.com/repos/ciechowoj/dstep/contributors","subscribers_url":"https://api.github.com/repos/ciechowoj/dstep/subscribers","subscription_url":"https://api.github.com/repos/ciechowoj/dstep/subscription","commits_url":"https://api.github.com/repos/ciechowoj/dstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/ciechowoj/dstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/ciechowoj/dstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/ciechowoj/dstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/ciechowoj/dstep/contents/{+path}","compare_url":"https://api.github.com/repos/ciechowoj/dstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ciechowoj/dstep/merges","archive_url":"https://api.github.com/repos/ciechowoj/dstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ciechowoj/dstep/downloads","issues_url":"https://api.github.com/repos/ciechowoj/dstep/issues{/number}","pulls_url":"https://api.github.com/repos/ciechowoj/dstep/pulls{/number}","milestones_url":"https://api.github.com/repos/ciechowoj/dstep/milestones{/number}","notifications_url":"https://api.github.com/repos/ciechowoj/dstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ciechowoj/dstep/labels{/name}","releases_url":"https://api.github.com/repos/ciechowoj/dstep/releases{/id}","deployments_url":"https://api.github.com/repos/ciechowoj/dstep/deployments","created_at":"2016-01-31T20:53:41Z","updated_at":"2016-01-31T20:53:42Z","pushed_at":"2016-02-19T19:41:51Z","git_url":"git://github.com/ciechowoj/dstep.git","ssh_url":"git@github.com:ciechowoj/dstep.git","clone_url":"https://github.com/ciechowoj/dstep.git","svn_url":"https://github.com/ciechowoj/dstep","homepage":"","size":625,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jacob-carlborg:master","ref":"master","sha":"a865165b117105e33a7ccbafee90ff49197e32b0","user":{"login":"jacob-carlborg","id":306980,"avatar_url":"https://avatars.githubusercontent.com/u/306980?v=3","gravatar_id":"","url":"https://api.github.com/users/jacob-carlborg","html_url":"https://github.com/jacob-carlborg","followers_url":"https://api.github.com/users/jacob-carlborg/followers","following_url":"https://api.github.com/users/jacob-carlborg/following{/other_user}","gists_url":"https://api.github.com/users/jacob-carlborg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob-carlborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob-carlborg/subscriptions","organizations_url":"https://api.github.com/users/jacob-carlborg/orgs","repos_url":"https://api.github.com/users/jacob-carlborg/repos","events_url":"https://api.github.com/users/jacob-carlborg/events{/privacy}","received_events_url":"https://api.github.com/users/jacob-carlborg/received_events","type":"User","site_admin":false},"repo":{"id":2494736,"name":"dstep","full_name":"jacob-carlborg/dstep","owner":{"login":"jacob-carlborg","id":306980,"avatar_url":"https://avatars.githubusercontent.com/u/306980?v=3","gravatar_id":"","url":"https://api.github.com/users/jacob-carlborg","html_url":"https://github.com/jacob-carlborg","followers_url":"https://api.github.com/users/jacob-carlborg/followers","following_url":"https://api.github.com/users/jacob-carlborg/following{/other_user}","gists_url":"https://api.github.com/users/jacob-carlborg/gists{/gist_id}","starred_url":"https://api.github.com/users/jacob-carlborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacob-carlborg/subscriptions","organizations_url":"https://api.github.com/users/jacob-carlborg/orgs","repos_url":"https://api.github.com/users/jacob-carlborg/repos","events_url":"https://api.github.com/users/jacob-carlborg/events{/privacy}","received_events_url":"https://api.github.com/users/jacob-carlborg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacob-carlborg/dstep","description":"A tool for converting C and Objective-C headers to D modules","fork":false,"url":"https://api.github.com/repos/jacob-carlborg/dstep","forks_url":"https://api.github.com/repos/jacob-carlborg/dstep/forks","keys_url":"https://api.github.com/repos/jacob-carlborg/dstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacob-carlborg/dstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacob-carlborg/dstep/teams","hooks_url":"https://api.github.com/repos/jacob-carlborg/dstep/hooks","issue_events_url":"https://api.github.com/repos/jacob-carlborg/dstep/issues/events{/number}","events_url":"https://api.github.com/repos/jacob-carlborg/dstep/events","assignees_url":"https://api.github.com/repos/jacob-carlborg/dstep/assignees{/user}","branches_url":"https://api.github.com/repos/jacob-carlborg/dstep/branches{/branch}","tags_url":"https://api.github.com/repos/jacob-carlborg/dstep/tags","blobs_url":"https://api.github.com/repos/jacob-carlborg/dstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacob-carlborg/dstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacob-carlborg/dstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacob-carlborg/dstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacob-carlborg/dstep/statuses/{sha}","languages_url":"https://api.github.com/repos/jacob-carlborg/dstep/languages","stargazers_url":"https://api.github.com/repos/jacob-carlborg/dstep/stargazers","contributors_url":"https://api.github.com/repos/jacob-carlborg/dstep/contributors","subscribers_url":"https://api.github.com/repos/jacob-carlborg/dstep/subscribers","subscription_url":"https://api.github.com/repos/jacob-carlborg/dstep/subscription","commits_url":"https://api.github.com/repos/jacob-carlborg/dstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacob-carlborg/dstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacob-carlborg/dstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacob-carlborg/dstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacob-carlborg/dstep/contents/{+path}","compare_url":"https://api.github.com/repos/jacob-carlborg/dstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacob-carlborg/dstep/merges","archive_url":"https://api.github.com/repos/jacob-carlborg/dstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacob-carlborg/dstep/downloads","issues_url":"https://api.github.com/repos/jacob-carlborg/dstep/issues{/number}","pulls_url":"https://api.github.com/repos/jacob-carlborg/dstep/pulls{/number}","milestones_url":"https://api.github.com/repos/jacob-carlborg/dstep/milestones{/number}","notifications_url":"https://api.github.com/repos/jacob-carlborg/dstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacob-carlborg/dstep/labels{/name}","releases_url":"https://api.github.com/repos/jacob-carlborg/dstep/releases{/id}","deployments_url":"https://api.github.com/repos/jacob-carlborg/dstep/deployments","created_at":"2011-10-01T12:33:12Z","updated_at":"2016-02-17T20:31:00Z","pushed_at":"2016-02-19T19:44:38Z","git_url":"git://github.com/jacob-carlborg/dstep.git","ssh_url":"git@github.com:jacob-carlborg/dstep.git","clone_url":"https://github.com/jacob-carlborg/dstep.git","svn_url":"https://github.com/jacob-carlborg/dstep","homepage":"","size":600,"stargazers_count":87,"watchers_count":87,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":24,"forks":12,"open_issues":24,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51"},"html":{"href":"https://github.com/jacob-carlborg/dstep/pull/51"},"issue":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/issues/51"},"comments":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/jacob-carlborg/dstep/statuses/7ef8ff0fcd2855b0b7d9e5a9dc9eac215a922bd2"}}}}