Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
066c2772
Commit
066c2772
authored
May 16, 2014
by
ksss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const_missing error message more detail
parent
60051de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/class.c
src/class.c
+10
-2
No files found.
src/class.c
View file @
066c2772
...
@@ -1890,8 +1890,16 @@ mrb_mod_const_missing(mrb_state *mrb, mrb_value mod)
...
@@ -1890,8 +1890,16 @@ mrb_mod_const_missing(mrb_state *mrb, mrb_value mod)
mrb_sym
sym
;
mrb_sym
sym
;
mrb_get_args
(
mrb
,
"n"
,
&
sym
);
mrb_get_args
(
mrb
,
"n"
,
&
sym
);
mrb_name_error
(
mrb
,
sym
,
"uninitialized constant %S"
,
mrb_sym2str
(
mrb
,
sym
));
if
(
mrb_class_real
(
mrb_class_ptr
(
mod
))
!=
mrb
->
object_class
)
{
mrb_name_error
(
mrb
,
sym
,
"uninitialized constant %S::%S"
,
mod
,
mrb_sym2str
(
mrb
,
sym
));
}
else
{
mrb_name_error
(
mrb
,
sym
,
"uninitialized constant %S"
,
mrb_sym2str
(
mrb
,
sym
));
}
/* not reached */
/* not reached */
return
mrb_nil_value
();
return
mrb_nil_value
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment