{"action":"created","issue":{"url":"https://api.github.com/repos/ziglang/zig/issues/1085","repository_url":"https://api.github.com/repos/ziglang/zig","labels_url":"https://api.github.com/repos/ziglang/zig/issues/1085/labels{/name}","comments_url":"https://api.github.com/repos/ziglang/zig/issues/1085/comments","events_url":"https://api.github.com/repos/ziglang/zig/issues/1085/events","html_url":"https://github.com/ziglang/zig/issues/1085","id":330852162,"node_id":"MDU6SXNzdWUzMzA4NTIxNjI=","number":1085,"title":"support more macros in translate-c","user":{"login":"andrewrk","id":106511,"node_id":"MDQ6VXNlcjEwNjUxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/106511?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"labels":[{"id":244683521,"node_id":"MDU6TGFiZWwyNDQ2ODM1MjE=","url":"https://api.github.com/repos/ziglang/zig/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ziglang/zig/milestones/6","html_url":"https://github.com/ziglang/zig/milestone/6","labels_url":"https://api.github.com/repos/ziglang/zig/milestones/6/labels","id":3149533,"node_id":"MDk6TWlsZXN0b25lMzE0OTUzMw==","number":6,"title":"0.4.0","description":"Accept and resolve these issues, reject, or postpone them before releasing 0.4.0.","creator":{"login":"andrewrk","id":106511,"node_id":"MDQ6VXNlcjEwNjUxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/106511?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"open_issues":208,"closed_issues":14,"state":"open","created_at":"2018-02-28T05:37:00Z","updated_at":"2018-06-09T04:32:43Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-06-09T04:32:43Z","updated_at":"2018-06-09T14:46:58Z","closed_at":null,"author_association":"MEMBER","body":"this is an issue to collect examples of macros that fail to translate, but there would be a very clear way to correctly translate the macro into a zig.\r\n\r\nhere's one for starters:\r\n\r\n```c\r\n#define PPosition\t(1L << 2) /* program specified position */\r\n```"},"comment":{"url":"https://api.github.com/repos/ziglang/zig/issues/comments/395974868","html_url":"https://github.com/ziglang/zig/issues/1085#issuecomment-395974868","issue_url":"https://api.github.com/repos/ziglang/zig/issues/1085","id":395974868,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTk3NDg2OA==","user":{"login":"bheads","id":819068,"node_id":"MDQ6VXNlcjgxOTA2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/819068?v=4","gravatar_id":"","url":"https://api.github.com/users/bheads","html_url":"https://github.com/bheads","followers_url":"https://api.github.com/users/bheads/followers","following_url":"https://api.github.com/users/bheads/following{/other_user}","gists_url":"https://api.github.com/users/bheads/gists{/gist_id}","starred_url":"https://api.github.com/users/bheads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bheads/subscriptions","organizations_url":"https://api.github.com/users/bheads/orgs","repos_url":"https://api.github.com/users/bheads/repos","events_url":"https://api.github.com/users/bheads/events{/privacy}","received_events_url":"https://api.github.com/users/bheads/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T14:46:58Z","updated_at":"2018-06-09T14:46:58Z","author_association":"NONE","body":"Thats true that macros suck, but there is a lot of C code that makes macro functions, having a way to translate them, or maybe simpler would be to at least make them a comment so you can translate them by hand would help.  One example I was dealing with was protobuffer, it generates a .c and .h file based on your .proto so tweaking it every time would be a pita."}}
{"actor":{"display_login":"bheads"}}