{"action":"created","issue":{"url":"https://api.github.com/repos/raysan5/raylib/issues/482","repository_url":"https://api.github.com/repos/raysan5/raylib","labels_url":"https://api.github.com/repos/raysan5/raylib/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/raysan5/raylib/issues/482/comments","events_url":"https://api.github.com/repos/raysan5/raylib/issues/482/events","html_url":"https://github.com/raysan5/raylib/pull/482","id":299509117,"number":482,"title":"raymath.h: Use C99 inline semantics","user":{"login":"a3f","id":5204368,"avatar_url":"https://avatars3.githubusercontent.com/u/5204368?v=4","gravatar_id":"","url":"https://api.github.com/users/a3f","html_url":"https://github.com/a3f","followers_url":"https://api.github.com/users/a3f/followers","following_url":"https://api.github.com/users/a3f/following{/other_user}","gists_url":"https://api.github.com/users/a3f/gists{/gist_id}","starred_url":"https://api.github.com/users/a3f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3f/subscriptions","organizations_url":"https://api.github.com/users/a3f/orgs","repos_url":"https://api.github.com/users/a3f/repos","events_url":"https://api.github.com/users/a3f/events{/privacy}","received_events_url":"https://api.github.com/users/a3f/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"raysan5","id":5766837,"avatar_url":"https://avatars0.githubusercontent.com/u/5766837?v=4","gravatar_id":"","url":"https://api.github.com/users/raysan5","html_url":"https://github.com/raysan5","followers_url":"https://api.github.com/users/raysan5/followers","following_url":"https://api.github.com/users/raysan5/following{/other_user}","gists_url":"https://api.github.com/users/raysan5/gists{/gist_id}","starred_url":"https://api.github.com/users/raysan5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raysan5/subscriptions","organizations_url":"https://api.github.com/users/raysan5/orgs","repos_url":"https://api.github.com/users/raysan5/repos","events_url":"https://api.github.com/users/raysan5/events{/privacy}","received_events_url":"https://api.github.com/users/raysan5/received_events","type":"User","site_admin":false},"assignees":[{"login":"raysan5","id":5766837,"avatar_url":"https://avatars0.githubusercontent.com/u/5766837?v=4","gravatar_id":"","url":"https://api.github.com/users/raysan5","html_url":"https://github.com/raysan5","followers_url":"https://api.github.com/users/raysan5/followers","following_url":"https://api.github.com/users/raysan5/following{/other_user}","gists_url":"https://api.github.com/users/raysan5/gists{/gist_id}","starred_url":"https://api.github.com/users/raysan5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raysan5/subscriptions","organizations_url":"https://api.github.com/users/raysan5/orgs","repos_url":"https://api.github.com/users/raysan5/repos","events_url":"https://api.github.com/users/raysan5/events{/privacy}","received_events_url":"https://api.github.com/users/raysan5/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-22T21:09:39Z","updated_at":"2018-02-22T22:26:16Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/raysan5/raylib/pulls/482","html_url":"https://github.com/raysan5/raylib/pull/482","diff_url":"https://github.com/raysan5/raylib/pull/482.diff","patch_url":"https://github.com/raysan5/raylib/pull/482.patch"},"body":"RAYMATH_EXTERN_INLINE was renamed to RAYMATH_HEADER_ONLY, which user code\r\nmay define if they want to use it as header-only library. If multiple\r\nfiles in the same project define RAYMATH_HEADER_ONLY, they might each\r\nhave duplicate out-of-line definitions of the same functions.\r\n\r\nBy default, raymath.h exposes inline definitions, which instructs the\r\ncompiler _not_ to generate out-of-line definitons, if out-of-line\r\ndefinitions are required, those of the file defined with\r\nRAYLIB_IMPLEMENTATION are used instead. There may be only one such file.\r\n\r\nIn C++ mode, the compiler will select only one out-of-line definition\r\nautomatically, so no need to define a RAYLIB_IMPLEMENTATION.\r\n\r\nUnfortunately, we have to remove raymath function declaration from\r\nraylib.h as those declarations would lead to duplicate out-of-line\r\ndefinitions which would yield linker errors. This problem didn't\r\nexist with GNU89 or C++, because there multiple defintions are ok,\r\nbut in C99 they aren't.\r\n\r\nAddresses #478."},"comment":{"url":"https://api.github.com/repos/raysan5/raylib/issues/comments/367843897","html_url":"https://github.com/raysan5/raylib/pull/482#issuecomment-367843897","issue_url":"https://api.github.com/repos/raysan5/raylib/issues/482","id":367843897,"user":{"login":"raysan5","id":5766837,"avatar_url":"https://avatars0.githubusercontent.com/u/5766837?v=4","gravatar_id":"","url":"https://api.github.com/users/raysan5","html_url":"https://github.com/raysan5","followers_url":"https://api.github.com/users/raysan5/followers","following_url":"https://api.github.com/users/raysan5/following{/other_user}","gists_url":"https://api.github.com/users/raysan5/gists{/gist_id}","starred_url":"https://api.github.com/users/raysan5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raysan5/subscriptions","organizations_url":"https://api.github.com/users/raysan5/orgs","repos_url":"https://api.github.com/users/raysan5/repos","events_url":"https://api.github.com/users/raysan5/events{/privacy}","received_events_url":"https://api.github.com/users/raysan5/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T22:26:16Z","updated_at":"2018-02-22T22:26:16Z","author_association":"OWNER","body":"Need to review this carefully... actually, I tried to follow stb lessons on header-only library implementation: https://github.com/nothings/stb/blob/master/docs/stb_howto.txt\r\n\r\nAlso, need to see how it works with [rlgl_standalone](https://github.com/raysan5/raylib/blob/master/examples/others/rlgl_standalone.c) (uses [rlgl.h](https://github.com/raysan5/raylib/blob/master/src/rlgl.h)).\r\n\r\nAbout `*ToFloat()` approach seems ok but I'd like to review naming...\r\n\r\n"}}
{"actor":{"display_login":"raysan5"}}