{"action":"created","issue":{"url":"https://api.github.com/repos/swig/swig/issues/138","repository_url":"https://api.github.com/repos/swig/swig","labels_url":"https://api.github.com/repos/swig/swig/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/swig/swig/issues/138/comments","events_url":"https://api.github.com/repos/swig/swig/issues/138/events","html_url":"https://github.com/swig/swig/issues/138","id":27780262,"number":138,"title":"ruby %alias on functions","user":{"login":"theldoria","id":1366671,"avatar_url":"https://avatars3.githubusercontent.com/u/1366671?v=4","gravatar_id":"","url":"https://api.github.com/users/theldoria","html_url":"https://github.com/theldoria","followers_url":"https://api.github.com/users/theldoria/followers","following_url":"https://api.github.com/users/theldoria/following{/other_user}","gists_url":"https://api.github.com/users/theldoria/gists{/gist_id}","starred_url":"https://api.github.com/users/theldoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theldoria/subscriptions","organizations_url":"https://api.github.com/users/theldoria/orgs","repos_url":"https://api.github.com/users/theldoria/repos","events_url":"https://api.github.com/users/theldoria/events{/privacy}","received_events_url":"https://api.github.com/users/theldoria/received_events","type":"User","site_admin":false},"labels":[{"id":439285388,"url":"https://api.github.com/repos/swig/swig/labels/Ruby","name":"Ruby","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-02-18T09:38:23Z","updated_at":"2018-03-21T23:43:22Z","closed_at":null,"author_association":"NONE","body":"It is not possible to apply %alias to native C functions. Code generation silently failes (with swigwin-2.0.6).\n\nExample:\nmod.i\n\n```\n  %module mod\n\n  %{\n  #include \"mod.h\"\n  %}\n\n  %alias foo \"bar\";\n  %include \"mod.h\"\n```\n\nmod.h\n\n```\n  #define bar foo\n  extern int foo(int i);\n```\n\nmod.c\n\n```\n  #include \"mod.h\"\n  int foo(int i)\n  {\n     return i + 1;\n  }\n```\n"},"comment":{"url":"https://api.github.com/repos/swig/swig/issues/comments/375131680","html_url":"https://github.com/swig/swig/issues/138#issuecomment-375131680","issue_url":"https://api.github.com/repos/swig/swig/issues/138","id":375131680,"user":{"login":"goatshriek","id":981514,"avatar_url":"https://avatars1.githubusercontent.com/u/981514?v=4","gravatar_id":"","url":"https://api.github.com/users/goatshriek","html_url":"https://github.com/goatshriek","followers_url":"https://api.github.com/users/goatshriek/followers","following_url":"https://api.github.com/users/goatshriek/following{/other_user}","gists_url":"https://api.github.com/users/goatshriek/gists{/gist_id}","starred_url":"https://api.github.com/users/goatshriek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatshriek/subscriptions","organizations_url":"https://api.github.com/users/goatshriek/orgs","repos_url":"https://api.github.com/users/goatshriek/repos","events_url":"https://api.github.com/users/goatshriek/events{/privacy}","received_events_url":"https://api.github.com/users/goatshriek/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T23:43:22Z","updated_at":"2018-03-21T23:43:22Z","author_association":"NONE","body":"I've created a simple fix for this in Pull Request #1213 which adds support for the case where CPP is not in use. I also include three test cases for function aliases in the case of CPP methods (which was working before) as well as global functions and Ruby module functions (which both caused this issue)."}}
{"actor":{"display_login":"goatshriek"}}