{"action":"closed","number":335,"pull_request":{"url":"https://api.github.com/repos/pawn-lang/compiler/pulls/335","id":198728882,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NzI4ODgy","html_url":"https://github.com/pawn-lang/compiler/pull/335","diff_url":"https://github.com/pawn-lang/compiler/pull/335.diff","patch_url":"https://github.com/pawn-lang/compiler/pull/335.patch","issue_url":"https://api.github.com/repos/pawn-lang/compiler/issues/335","number":335,"state":"closed","locked":false,"title":"Don't generate function preamble on naked functions","user":{"login":"AGraber","id":18301034,"node_id":"MDQ6VXNlcjE4MzAxMDM0","avatar_url":"https://avatars1.githubusercontent.com/u/18301034?v=4","gravatar_id":"","url":"https://api.github.com/users/AGraber","html_url":"https://github.com/AGraber","followers_url":"https://api.github.com/users/AGraber/followers","following_url":"https://api.github.com/users/AGraber/following{/other_user}","gists_url":"https://api.github.com/users/AGraber/gists{/gist_id}","starred_url":"https://api.github.com/users/AGraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGraber/subscriptions","organizations_url":"https://api.github.com/users/AGraber/orgs","repos_url":"https://api.github.com/users/AGraber/repos","events_url":"https://api.github.com/users/AGraber/events{/privacy}","received_events_url":"https://api.github.com/users/AGraber/received_events","type":"User","site_admin":false},"body":"**What this PR does / why we need it**:\r\n\r\n- Skips function preamble (`PROC` instruction) on naked functions\r\n\r\n**Which issue(s) this PR fixes**:\r\n\r\n<!--GitHub tip: using \"Fixes #<issue number> will automatically close the issue upon being merged-->\r\n\r\nFixes #324 \r\n\r\n**What kind of pull this is**:\r\n\r\n* [ ] A Bug Fix\r\n* [x] A New Feature\r\n* [ ] Some repository meta (documentation, etc)\r\n* [ ] Other\r\n\r\n**Additional Documentation**:\r\nAssembly output demonstrating the new feature:\r\n\r\ntest1.pwn:\r\n```pawn\r\n#pragma naked\r\nf(a)\r\n{\r\n    #emit LOAD.S.pri a\r\n    #emit RETN\r\n}\r\n\r\nmain()\r\n{\r\n\tf(5);\r\n}\r\n```\r\n\r\ntest1.asm:\r\n```asm\r\n\r\nCODE 0\t; 0\r\n;program exit point\r\n\thalt 0\r\n\r\n\t; f\r\n\t; line 3\r\n\t;$lcl a c\r\n\tload.s.pri c\r\n\tretn \r\n\r\n\tproc\t; main\r\n\t; line 9\r\n\t; line a\r\n\tbreak\t; 18\r\n\tpush.c 5\r\n\t;$par\r\n\tpush.c 4\r\n\tcall .f\r\n\t;$exp\r\n\tzero.pri\r\n\tretn\r\n\r\n\r\nSTKSIZE 1000\r\n```\r\n\r\ntest2.pwn:\r\n```pawn\r\nf(a)\r\n{\r\n    #emit LOAD.S.pri a\r\n    #emit RETN\r\n}\r\n\r\nmain()\r\n{\r\n\tf(5);\r\n}\r\n```\r\n\r\ntest2.asm:\r\n```asm\r\n\r\nCODE 0\t; 0\r\n;program exit point\r\n\thalt 0\r\n\r\n\tproc\t; f\r\n\t; line 2\r\n\t;$lcl a c\r\n\tload.s.pri c\r\n\tretn \r\n\tzero.pri\r\n\tretn\r\n\r\n\tproc\t; main\r\n\t; line 8\r\n\t; line 9\r\n\tbreak\t; 24\r\n\tpush.c 5\r\n\t;$par\r\n\tpush.c 4\r\n\tcall .f\r\n\t;$exp\r\n\tzero.pri\r\n\tretn\r\n\r\n\r\nSTKSIZE 1000\r\n```","created_at":"2018-07-02T16:22:26Z","updated_at":"2018-07-27T02:54:54Z","closed_at":"2018-07-27T02:54:54Z","merged_at":"2018-07-27T02:54:54Z","merge_commit_sha":"7a6f82b1c01263136b17da9cc3cad24c87a5ccc9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":987123173,"node_id":"MDU6TGFiZWw5ODcxMjMxNzM=","url":"https://api.github.com/repos/pawn-lang/compiler/labels/pr:%20need%20tests","name":"pr: need tests","color":"92a803","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pawn-lang/compiler/pulls/335/commits","review_comments_url":"https://api.github.com/repos/pawn-lang/compiler/pulls/335/comments","review_comment_url":"https://api.github.com/repos/pawn-lang/compiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pawn-lang/compiler/issues/335/comments","statuses_url":"https://api.github.com/repos/pawn-lang/compiler/statuses/0c9ddcfad1b58d29dccf7867d5a87e2dfa1fda65","head":{"label":"AGraber:master","ref":"master","sha":"0c9ddcfad1b58d29dccf7867d5a87e2dfa1fda65","user":{"login":"AGraber","id":18301034,"node_id":"MDQ6VXNlcjE4MzAxMDM0","avatar_url":"https://avatars1.githubusercontent.com/u/18301034?v=4","gravatar_id":"","url":"https://api.github.com/users/AGraber","html_url":"https://github.com/AGraber","followers_url":"https://api.github.com/users/AGraber/followers","following_url":"https://api.github.com/users/AGraber/following{/other_user}","gists_url":"https://api.github.com/users/AGraber/gists{/gist_id}","starred_url":"https://api.github.com/users/AGraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGraber/subscriptions","organizations_url":"https://api.github.com/users/AGraber/orgs","repos_url":"https://api.github.com/users/AGraber/repos","events_url":"https://api.github.com/users/AGraber/events{/privacy}","received_events_url":"https://api.github.com/users/AGraber/received_events","type":"User","site_admin":false},"repo":{"id":139461450,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0NjE0NTA=","name":"compiler","full_name":"AGraber/compiler","owner":{"login":"AGraber","id":18301034,"node_id":"MDQ6VXNlcjE4MzAxMDM0","avatar_url":"https://avatars1.githubusercontent.com/u/18301034?v=4","gravatar_id":"","url":"https://api.github.com/users/AGraber","html_url":"https://github.com/AGraber","followers_url":"https://api.github.com/users/AGraber/followers","following_url":"https://api.github.com/users/AGraber/following{/other_user}","gists_url":"https://api.github.com/users/AGraber/gists{/gist_id}","starred_url":"https://api.github.com/users/AGraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGraber/subscriptions","organizations_url":"https://api.github.com/users/AGraber/orgs","repos_url":"https://api.github.com/users/AGraber/repos","events_url":"https://api.github.com/users/AGraber/events{/privacy}","received_events_url":"https://api.github.com/users/AGraber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AGraber/compiler","description":"Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS","fork":true,"url":"https://api.github.com/repos/AGraber/compiler","forks_url":"https://api.github.com/repos/AGraber/compiler/forks","keys_url":"https://api.github.com/repos/AGraber/compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AGraber/compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AGraber/compiler/teams","hooks_url":"https://api.github.com/repos/AGraber/compiler/hooks","issue_events_url":"https://api.github.com/repos/AGraber/compiler/issues/events{/number}","events_url":"https://api.github.com/repos/AGraber/compiler/events","assignees_url":"https://api.github.com/repos/AGraber/compiler/assignees{/user}","branches_url":"https://api.github.com/repos/AGraber/compiler/branches{/branch}","tags_url":"https://api.github.com/repos/AGraber/compiler/tags","blobs_url":"https://api.github.com/repos/AGraber/compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AGraber/compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AGraber/compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/AGraber/compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AGraber/compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/AGraber/compiler/languages","stargazers_url":"https://api.github.com/repos/AGraber/compiler/stargazers","contributors_url":"https://api.github.com/repos/AGraber/compiler/contributors","subscribers_url":"https://api.github.com/repos/AGraber/compiler/subscribers","subscription_url":"https://api.github.com/repos/AGraber/compiler/subscription","commits_url":"https://api.github.com/repos/AGraber/compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/AGraber/compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/AGraber/compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/AGraber/compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/AGraber/compiler/contents/{+path}","compare_url":"https://api.github.com/repos/AGraber/compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AGraber/compiler/merges","archive_url":"https://api.github.com/repos/AGraber/compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AGraber/compiler/downloads","issues_url":"https://api.github.com/repos/AGraber/compiler/issues{/number}","pulls_url":"https://api.github.com/repos/AGraber/compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/AGraber/compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/AGraber/compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AGraber/compiler/labels{/name}","releases_url":"https://api.github.com/repos/AGraber/compiler/releases{/id}","deployments_url":"https://api.github.com/repos/AGraber/compiler/deployments","created_at":"2018-07-02T15:30:36Z","updated_at":"2018-07-08T16:01:27Z","pushed_at":"2018-07-08T16:01:26Z","git_url":"git://github.com/AGraber/compiler.git","ssh_url":"git@github.com:AGraber/compiler.git","clone_url":"https://github.com/AGraber/compiler.git","svn_url":"https://github.com/AGraber/compiler","homepage":"","size":3008,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pawn-lang:dev","ref":"dev","sha":"000b4d52b98ae26e7acb83cd1642dee7dbcc7e38","user":{"login":"pawn-lang","id":35569887,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NTY5ODg3","avatar_url":"https://avatars1.githubusercontent.com/u/35569887?v=4","gravatar_id":"","url":"https://api.github.com/users/pawn-lang","html_url":"https://github.com/pawn-lang","followers_url":"https://api.github.com/users/pawn-lang/followers","following_url":"https://api.github.com/users/pawn-lang/following{/other_user}","gists_url":"https://api.github.com/users/pawn-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/pawn-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawn-lang/subscriptions","organizations_url":"https://api.github.com/users/pawn-lang/orgs","repos_url":"https://api.github.com/users/pawn-lang/repos","events_url":"https://api.github.com/users/pawn-lang/events{/privacy}","received_events_url":"https://api.github.com/users/pawn-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":3222079,"node_id":"MDEwOlJlcG9zaXRvcnkzMjIyMDc5","name":"compiler","full_name":"pawn-lang/compiler","owner":{"login":"pawn-lang","id":35569887,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NTY5ODg3","avatar_url":"https://avatars1.githubusercontent.com/u/35569887?v=4","gravatar_id":"","url":"https://api.github.com/users/pawn-lang","html_url":"https://github.com/pawn-lang","followers_url":"https://api.github.com/users/pawn-lang/followers","following_url":"https://api.github.com/users/pawn-lang/following{/other_user}","gists_url":"https://api.github.com/users/pawn-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/pawn-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawn-lang/subscriptions","organizations_url":"https://api.github.com/users/pawn-lang/orgs","repos_url":"https://api.github.com/users/pawn-lang/repos","events_url":"https://api.github.com/users/pawn-lang/events{/privacy}","received_events_url":"https://api.github.com/users/pawn-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pawn-lang/compiler","description":"Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS","fork":false,"url":"https://api.github.com/repos/pawn-lang/compiler","forks_url":"https://api.github.com/repos/pawn-lang/compiler/forks","keys_url":"https://api.github.com/repos/pawn-lang/compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pawn-lang/compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pawn-lang/compiler/teams","hooks_url":"https://api.github.com/repos/pawn-lang/compiler/hooks","issue_events_url":"https://api.github.com/repos/pawn-lang/compiler/issues/events{/number}","events_url":"https://api.github.com/repos/pawn-lang/compiler/events","assignees_url":"https://api.github.com/repos/pawn-lang/compiler/assignees{/user}","branches_url":"https://api.github.com/repos/pawn-lang/compiler/branches{/branch}","tags_url":"https://api.github.com/repos/pawn-lang/compiler/tags","blobs_url":"https://api.github.com/repos/pawn-lang/compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pawn-lang/compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pawn-lang/compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/pawn-lang/compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pawn-lang/compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/pawn-lang/compiler/languages","stargazers_url":"https://api.github.com/repos/pawn-lang/compiler/stargazers","contributors_url":"https://api.github.com/repos/pawn-lang/compiler/contributors","subscribers_url":"https://api.github.com/repos/pawn-lang/compiler/subscribers","subscription_url":"https://api.github.com/repos/pawn-lang/compiler/subscription","commits_url":"https://api.github.com/repos/pawn-lang/compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/pawn-lang/compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/pawn-lang/compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/pawn-lang/compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/pawn-lang/compiler/contents/{+path}","compare_url":"https://api.github.com/repos/pawn-lang/compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pawn-lang/compiler/merges","archive_url":"https://api.github.com/repos/pawn-lang/compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pawn-lang/compiler/downloads","issues_url":"https://api.github.com/repos/pawn-lang/compiler/issues{/number}","pulls_url":"https://api.github.com/repos/pawn-lang/compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/pawn-lang/compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/pawn-lang/compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pawn-lang/compiler/labels{/name}","releases_url":"https://api.github.com/repos/pawn-lang/compiler/releases{/id}","deployments_url":"https://api.github.com/repos/pawn-lang/compiler/deployments","created_at":"2012-01-19T23:07:57Z","updated_at":"2018-07-24T18:53:26Z","pushed_at":"2018-07-27T02:54:54Z","git_url":"git://github.com/pawn-lang/compiler.git","ssh_url":"git@github.com:pawn-lang/compiler.git","clone_url":"https://github.com/pawn-lang/compiler.git","svn_url":"https://github.com/pawn-lang/compiler","homepage":"","size":3147,"stargazers_count":127,"watchers_count":127,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":87,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":30,"open_issues":87,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pawn-lang/compiler/pulls/335"},"html":{"href":"https://github.com/pawn-lang/compiler/pull/335"},"issue":{"href":"https://api.github.com/repos/pawn-lang/compiler/issues/335"},"comments":{"href":"https://api.github.com/repos/pawn-lang/compiler/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/pawn-lang/compiler/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/pawn-lang/compiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pawn-lang/compiler/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/pawn-lang/compiler/statuses/0c9ddcfad1b58d29dccf7867d5a87e2dfa1fda65"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"YashasSamaga","id":6652578,"node_id":"MDQ6VXNlcjY2NTI1Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/6652578?v=4","gravatar_id":"","url":"https://api.github.com/users/YashasSamaga","html_url":"https://github.com/YashasSamaga","followers_url":"https://api.github.com/users/YashasSamaga/followers","following_url":"https://api.github.com/users/YashasSamaga/following{/other_user}","gists_url":"https://api.github.com/users/YashasSamaga/gists{/gist_id}","starred_url":"https://api.github.com/users/YashasSamaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashasSamaga/subscriptions","organizations_url":"https://api.github.com/users/YashasSamaga/orgs","repos_url":"https://api.github.com/users/YashasSamaga/repos","events_url":"https://api.github.com/users/YashasSamaga/events{/privacy}","received_events_url":"https://api.github.com/users/YashasSamaga/received_events","type":"User","site_admin":false},"comments":10,"review_comments":7,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"YashasSamaga"}}