{"action":"opened","issue":{"url":"https://api.github.com/repos/mruby/mruby/issues/3146","repository_url":"https://api.github.com/repos/mruby/mruby","labels_url":"https://api.github.com/repos/mruby/mruby/issues/3146/labels{/name}","comments_url":"https://api.github.com/repos/mruby/mruby/issues/3146/comments","events_url":"https://api.github.com/repos/mruby/mruby/issues/3146/events","html_url":"https://github.com/mruby/mruby/issues/3146","id":148384262,"number":3146,"title":"How to check if class defined under?","user":{"login":"dragostis","id":4136413,"avatar_url":"https://avatars.githubusercontent.com/u/4136413?v=3","gravatar_id":"","url":"https://api.github.com/users/dragostis","html_url":"https://github.com/dragostis","followers_url":"https://api.github.com/users/dragostis/followers","following_url":"https://api.github.com/users/dragostis/following{/other_user}","gists_url":"https://api.github.com/users/dragostis/gists{/gist_id}","starred_url":"https://api.github.com/users/dragostis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragostis/subscriptions","organizations_url":"https://api.github.com/users/dragostis/orgs","repos_url":"https://api.github.com/users/dragostis/repos","events_url":"https://api.github.com/users/dragostis/events{/privacy}","received_events_url":"https://api.github.com/users/dragostis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T14:43:41Z","updated_at":"2016-04-14T14:43:41Z","closed_at":null,"body":"You can easily check if a class is defined with `mrb_class_defined`, but how can you check if class was defined under another class?\r\n\r\nI need this because I need to get an exception for `mrb_class_get_under` in case it isn't defined. For `mrb_class_get` I can simply check with `mrb_class_defined` and raise the exception in case this returns `false`, but how can I do with with `mrb_class_get_under`?"}}