{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/226","labels_url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/226/comments","events_url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/226/events","html_url":"https://github.com/HaxeFoundation/HaxeManual/issues/226","id":121431040,"number":226,"title":"Buildin defines description","user":{"login":"fzzr-","id":888526,"avatar_url":"https://avatars.githubusercontent.com/u/888526?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzr-","html_url":"https://github.com/fzzr-","followers_url":"https://api.github.com/users/fzzr-/followers","following_url":"https://api.github.com/users/fzzr-/following{/other_user}","gists_url":"https://api.github.com/users/fzzr-/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzr-/subscriptions","organizations_url":"https://api.github.com/users/fzzr-/orgs","repos_url":"https://api.github.com/users/fzzr-/repos","events_url":"https://api.github.com/users/fzzr-/events{/privacy}","received_events_url":"https://api.github.com/users/fzzr-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"markknol","id":576184,"avatar_url":"https://avatars.githubusercontent.com/u/576184?v=3","gravatar_id":"","url":"https://api.github.com/users/markknol","html_url":"https://github.com/markknol","followers_url":"https://api.github.com/users/markknol/followers","following_url":"https://api.github.com/users/markknol/following{/other_user}","gists_url":"https://api.github.com/users/markknol/gists{/gist_id}","starred_url":"https://api.github.com/users/markknol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markknol/subscriptions","organizations_url":"https://api.github.com/users/markknol/orgs","repos_url":"https://api.github.com/users/markknol/repos","events_url":"https://api.github.com/users/markknol/events{/privacy}","received_events_url":"https://api.github.com/users/markknol/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-12-10T08:44:49Z","updated_at":"2015-12-10T13:37:00Z","closed_at":null,"body":"1. Need describe all build-in compiler defines such as `haxe_ver` and its usage\r\n (e.g.: `#if haxe_ver > 3.1 ... #end`).\r\n2. Need describe the behaviour when we use any library from Haxelib we automatically have new define with same name. For example we using `-lib foo` and can get true in `#if foo ... #end`.\r\n\r\nI think it can be [there](https://github.com/HaxeFoundation/HaxeManual/blob/master/HaxeManual/07-compiler-usage.tex)."},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/comments/163620121","html_url":"https://github.com/HaxeFoundation/HaxeManual/issues/226#issuecomment-163620121","issue_url":"https://api.github.com/repos/HaxeFoundation/HaxeManual/issues/226","id":163620121,"user":{"login":"fzzr-","id":888526,"avatar_url":"https://avatars.githubusercontent.com/u/888526?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzr-","html_url":"https://github.com/fzzr-","followers_url":"https://api.github.com/users/fzzr-/followers","following_url":"https://api.github.com/users/fzzr-/following{/other_user}","gists_url":"https://api.github.com/users/fzzr-/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzr-/subscriptions","organizations_url":"https://api.github.com/users/fzzr-/orgs","repos_url":"https://api.github.com/users/fzzr-/repos","events_url":"https://api.github.com/users/fzzr-/events{/privacy}","received_events_url":"https://api.github.com/users/fzzr-/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:37:00Z","updated_at":"2015-12-10T13:37:00Z","body":"Also I mean buildin \"autodefined\" defines. For example\r\n\r\nFor Flash target:\r\n* `flashX(X_X) = 1` e.g. `flash9`/`flash10`/`flash11_9` - automatically created by setted `-swf-version XX.X`. Generating starts from version passed to `-swf-version` and down to `flash9` and all will be equal `1`;\r\n\r\nFor all targets:\r\n* `haxe2 = 1` for Haxe 2.X\r\n* `haxe3 = 1` for Haxe 3.X\r\n* `haxe_ver = X.X0X` e.g. `3.201` for Haxe v.3.2.1 and `3.1` for Haxe v.3.1.0;\r\n* `true = 1` (yes!)\r\n* `libname = X.X.X` for each used Haxelib-library (`-lib libname` / `-lib libname:X.X.X`);\r\n* `sys = 1` for static targets excluding flash;\r\n* `target-name = 1` e.g. for Javascript will be `js` / for C++ - `cpp`;\r\n* `hxcpp_api_level = 321` (really for all targets);\r\n\r\nAlso for all targets:\r\n* `macro = 1` in compile-time when macro executing;"}}