{"action":"closed","issue":{"url":"https://api.github.com/repos/Zeex/pawn/issues/165","repository_url":"https://api.github.com/repos/Zeex/pawn","labels_url":"https://api.github.com/repos/Zeex/pawn/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/Zeex/pawn/issues/165/comments","events_url":"https://api.github.com/repos/Zeex/pawn/issues/165/events","html_url":"https://github.com/Zeex/pawn/issues/165","id":222826199,"number":165,"title":"public variables, like public functions","user":{"login":"Dayvison","id":10089094,"avatar_url":"https://avatars0.githubusercontent.com/u/10089094?v=4","gravatar_id":"","url":"https://api.github.com/users/Dayvison","html_url":"https://github.com/Dayvison","followers_url":"https://api.github.com/users/Dayvison/followers","following_url":"https://api.github.com/users/Dayvison/following{/other_user}","gists_url":"https://api.github.com/users/Dayvison/gists{/gist_id}","starred_url":"https://api.github.com/users/Dayvison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dayvison/subscriptions","organizations_url":"https://api.github.com/users/Dayvison/orgs","repos_url":"https://api.github.com/users/Dayvison/repos","events_url":"https://api.github.com/users/Dayvison/events{/privacy}","received_events_url":"https://api.github.com/users/Dayvison/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-19T18:19:46Z","updated_at":"2017-09-29T09:58:14Z","closed_at":"2017-09-29T09:58:14Z","author_association":"NONE","body":"## Public functions\r\n- Detect after and before definition\r\n\r\n```pawn\r\n#if defined PUB \r\n\t#warning \"defined-1\"\r\n#endif\r\n\r\nforward PUB();\r\npublic PUB() { }\r\n\r\n#if defined PUB \r\n\t#warning \"defined-2\"\r\n#endif\r\n```\r\ngive this:\r\n```\r\nwarning 237: user warning: \"defined-1\"\r\nwarning 237: user warning: \"defined-2\"\r\n```\r\n\r\n## Public variables\r\n- Detect only after definition\r\n\r\n```pawn\r\n#if defined PUB \r\n\t#warning \"defined-1\"\r\n#endif\r\n\r\npublic PUB = 1;\r\n\r\n#if defined PUB \r\n\t#warning \"defined-2\"\r\n#endif\r\n```\r\ngive this:\r\n```\r\nwarning 237: user warning: \"defined-2\"\r\n```"}}
{"actor":{"display_login":"Dayvison"}}