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
cc64e6e2
Commit
cc64e6e2
authored
Sep 04, 2013
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment to mrb_assert in src/debug.c
parent
157a5529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/debug.c
src/debug.c
+4
-0
No files found.
src/debug.c
View file @
cc64e6e2
...
...
@@ -24,7 +24,9 @@ get_file(mrb_irep_debug_info* info, uint32_t const pc)
--
ret
;
// check returning file exists inside debug info
mrb_assert
(
info
->
files
<=
ret
&&
ret
<
(
info
->
files
+
info
->
flen
));
// check pc is within the range of returning file
mrb_assert
((
*
ret
)
->
start_pos
<=
pc
&&
pc
<
(((
ret
+
1
-
info
->
files
)
<
info
->
flen
)
?
(
*
(
ret
+
1
))
->
start_pos
:
info
->
pc_count
));
...
...
@@ -89,7 +91,9 @@ mrb_debug_get_line(mrb_irep* irep, uint32_t const pc)
--
ret
;
// check line entry pointer range
mrb_assert
(
f
->
line_flat_map
<=
ret
&&
ret
<
(
f
->
line_flat_map
+
f
->
line_entry_count
));
// check pc range
mrb_assert
(
ret
->
start_pos
<=
pc
&&
pc
<
(((
ret
+
1
-
f
->
line_flat_map
)
<
f
->
line_entry_count
)
?
(
ret
+
1
)
->
start_pos
:
irep
->
debug_info
->
pc_count
));
...
...
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