{"action":"created","issue":{"url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/15","repository_url":"https://api.github.com/repos/nippur72/ifdef-loader","labels_url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/15/comments","events_url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/15/events","html_url":"https://github.com/nippur72/ifdef-loader/issues/15","id":329653726,"node_id":"MDU6SXNzdWUzMjk2NTM3MjY=","number":15,"title":"Cannot use defines that have dashes","user":{"login":"jgranick","id":833997,"node_id":"MDQ6VXNlcjgzMzk5Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/833997?v=4","gravatar_id":"","url":"https://api.github.com/users/jgranick","html_url":"https://github.com/jgranick","followers_url":"https://api.github.com/users/jgranick/followers","following_url":"https://api.github.com/users/jgranick/following{/other_user}","gists_url":"https://api.github.com/users/jgranick/gists{/gist_id}","starred_url":"https://api.github.com/users/jgranick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgranick/subscriptions","organizations_url":"https://api.github.com/users/jgranick/orgs","repos_url":"https://api.github.com/users/jgranick/repos","events_url":"https://api.github.com/users/jgranick/events{/privacy}","received_events_url":"https://api.github.com/users/jgranick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-05T22:57:57Z","updated_at":"2018-06-06T19:34:52Z","closed_at":null,"author_association":"NONE","body":"You cannot use defines that use dashes (similar to `ifdef-verbose`) because this doesn't evaluate as proper JavaScript:\r\n\r\n```\r\n/// #if my-custom-define\r\n```\r\n\r\nThe Haxe language compiler converts `-D my-custom-define` to `#if my_custom_define` when evaluating source files, perhaps this would be a reasonable solution?\r\n\r\n\r\n_Related issue:_\r\n\r\nhttps://github.com/openfl/openfl/pull/1911"},"comment":{"url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/comments/395187722","html_url":"https://github.com/nippur72/ifdef-loader/issues/15#issuecomment-395187722","issue_url":"https://api.github.com/repos/nippur72/ifdef-loader/issues/15","id":395187722,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTE4NzcyMg==","user":{"login":"nippur72","id":2598443,"node_id":"MDQ6VXNlcjI1OTg0NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/2598443?v=4","gravatar_id":"","url":"https://api.github.com/users/nippur72","html_url":"https://github.com/nippur72","followers_url":"https://api.github.com/users/nippur72/followers","following_url":"https://api.github.com/users/nippur72/following{/other_user}","gists_url":"https://api.github.com/users/nippur72/gists{/gist_id}","starred_url":"https://api.github.com/users/nippur72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nippur72/subscriptions","organizations_url":"https://api.github.com/users/nippur72/orgs","repos_url":"https://api.github.com/users/nippur72/repos","events_url":"https://api.github.com/users/nippur72/events{/privacy}","received_events_url":"https://api.github.com/users/nippur72/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T19:34:52Z","updated_at":"2018-06-06T19:34:52Z","author_association":"OWNER","body":"I agree that the docs are not very clear. `ifdef-verbose` and `ifdef-triple-slash` are not actual symbols available for `#if`, they are special switches used to configure the tool itself. And that's why they have `-` in their names: name clashing with user defined symbols isn't possible because they ain't valid JavaScript identifiers."}}
{"actor":{"display_login":"nippur72"}}