{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/905","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/905/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/905/events","html_url":"https://github.com/nim-lang/Nim/issues/905","id":27450511,"number":905,"title":"Add emit header pragma","user":{"login":"gradha","id":101927,"avatar_url":"https://avatars.githubusercontent.com/u/101927?v=3","gravatar_id":"","url":"https://api.github.com/users/gradha","html_url":"https://github.com/gradha","followers_url":"https://api.github.com/users/gradha/followers","following_url":"https://api.github.com/users/gradha/following{/other_user}","gists_url":"https://api.github.com/users/gradha/gists{/gist_id}","starred_url":"https://api.github.com/users/gradha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradha/subscriptions","organizations_url":"https://api.github.com/users/gradha/orgs","repos_url":"https://api.github.com/users/gradha/repos","events_url":"https://api.github.com/users/gradha/events{/privacy}","received_events_url":"https://api.github.com/users/gradha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nim-lang/Nim/labels/Feature","name":"Feature","color":"0080f0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-02-12T17:14:26Z","updated_at":"2016-10-21T14:10:28Z","closed_at":"2016-10-21T14:10:28Z","body":"Similar to the ``{.emit.}`` pragma for backend code, a hypothetical ``{.emith.}`` pragma would add the emitted code to the C generated header file, which would then be public to all other C generated files and other code. One possible use would be to generate specific constants in the form of ``enums`` or  ``#defines`` since they are not supported by the language now (see #826).\r\n\r\nThe pragma could accept a position parameter to specify if the generated code has to be put before or after other generated code sections. This would also be a good time to define/document the order of the sections in the header, and also annotate them with C comments to indicate that the following exported functions come from which nimrod module."},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/255387356","html_url":"https://github.com/nim-lang/Nim/issues/905#issuecomment-255387356","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/905","id":255387356,"user":{"login":"Araq","id":287816,"avatar_url":"https://avatars.githubusercontent.com/u/287816?v=3","gravatar_id":"","url":"https://api.github.com/users/Araq","html_url":"https://github.com/Araq","followers_url":"https://api.github.com/users/Araq/followers","following_url":"https://api.github.com/users/Araq/following{/other_user}","gists_url":"https://api.github.com/users/Araq/gists{/gist_id}","starred_url":"https://api.github.com/users/Araq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Araq/subscriptions","organizations_url":"https://api.github.com/users/Araq/orgs","repos_url":"https://api.github.com/users/Araq/repos","events_url":"https://api.github.com/users/Araq/events{/privacy}","received_events_url":"https://api.github.com/users/Araq/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T14:10:28Z","updated_at":"2016-10-21T14:10:28Z","body":"The ``--header`` switch will be removed."}}
{"actor":{"display_login":"Araq"}}