{"action":"created","issue":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/475","repository_url":"https://api.github.com/repos/CBATeam/CBA_A3","labels_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/475/comments","events_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/475/events","html_url":"https://github.com/CBATeam/CBA_A3/pull/475","id":172303402,"number":475,"title":"Add macros 'F_FILEPATH' and 'RECOMPILE'","user":{"login":"dixon13","id":7998881,"avatar_url":"https://avatars.githubusercontent.com/u/7998881?v=3","gravatar_id":"","url":"https://api.github.com/users/dixon13","html_url":"https://github.com/dixon13","followers_url":"https://api.github.com/users/dixon13/followers","following_url":"https://api.github.com/users/dixon13/following{/other_user}","gists_url":"https://api.github.com/users/dixon13/gists{/gist_id}","starred_url":"https://api.github.com/users/dixon13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixon13/subscriptions","organizations_url":"https://api.github.com/users/dixon13/orgs","repos_url":"https://api.github.com/users/dixon13/repos","events_url":"https://api.github.com/users/dixon13/events{/privacy}","received_events_url":"https://api.github.com/users/dixon13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-21T04:07:23Z","updated_at":"2016-08-21T05:51:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/pulls/475","html_url":"https://github.com/CBATeam/CBA_A3/pull/475","diff_url":"https://github.com/CBATeam/CBA_A3/pull/475.diff","patch_url":"https://github.com/CBATeam/CBA_A3/pull/475.patch"},"body":"**When merged this pull request will:**\r\n- Add the macros `F_FILEPATH` and `RECOMPILE`\r\n- Argument for `F_FILEPATH` is the name of a function that is located at `\\MAINPREFIX\\PREFIX\\SUBPREFIX\\COMPONENT\\` and the name of the file is `fnc_func.sqf` where 'func' is the name of you're function. `func` will be the argument for `F_FILEPATH`\r\n- `RECOMPILE` does not accept an argument. If `RECOMPILE` is defined before including `script_macros_common.hpp` in you're component, then the functions defined with `F_FILEPATH` will be recompiled at mission start. (For debug purposes)\r\n\r\nThese macros emulate the below...\r\n```\r\nclass CfgFunctions {\r\n    class func {\r\n        file = \"\\MAINPREFIX\\PREFIX\\SUBPREFIX\\COMPONENT\\fnc_func.sqf\";\r\n        recompile = 0; //if RECOMPILE defined before including script_macros_common.hpp then recompile = 1\r\n    };\r\n};\r\n```\r\n\r\nThe macro 'F_FILEPATH' can be found already in the components `common` and `settings`. Just making it official :)\r\n\r\n#### Ignore the edits to `build.py`. I guess I removed some spaces or something but no edits to any of the code."},"comment":{"url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/comments/241240424","html_url":"https://github.com/CBATeam/CBA_A3/pull/475#issuecomment-241240424","issue_url":"https://api.github.com/repos/CBATeam/CBA_A3/issues/475","id":241240424,"user":{"login":"commy2","id":6576312,"avatar_url":"https://avatars.githubusercontent.com/u/6576312?v=3","gravatar_id":"","url":"https://api.github.com/users/commy2","html_url":"https://github.com/commy2","followers_url":"https://api.github.com/users/commy2/followers","following_url":"https://api.github.com/users/commy2/following{/other_user}","gists_url":"https://api.github.com/users/commy2/gists{/gist_id}","starred_url":"https://api.github.com/users/commy2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commy2/subscriptions","organizations_url":"https://api.github.com/users/commy2/orgs","repos_url":"https://api.github.com/users/commy2/repos","events_url":"https://api.github.com/users/commy2/events{/privacy}","received_events_url":"https://api.github.com/users/commy2/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T05:51:32Z","updated_at":"2016-08-21T05:51:32Z","body":"Would be cool if we could redefine it for `script_macros_mission.hpp`, so it doesn't use the addon space paths `PATHTOF`, but accesses the current mission folder.\r\nAlso we might want to think about a potentially better name than `F_FILEPATH` if we make it API. "}}
{"actor":{"display_login":"commy2"}}