mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add MRB_API modifiers to mruby API functions
This commit is contained in:
+5
-5
@@ -49,7 +49,7 @@ select_line_type(const uint16_t *lines, size_t lines_len)
|
||||
? mrb_debug_line_ary : mrb_debug_line_flat_map;
|
||||
}
|
||||
|
||||
char const*
|
||||
MRB_API char const*
|
||||
mrb_debug_get_filename(mrb_irep *irep, uint32_t pc)
|
||||
{
|
||||
if (irep && pc < irep->ilen) {
|
||||
@@ -62,7 +62,7 @@ mrb_debug_get_filename(mrb_irep *irep, uint32_t pc)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int32_t
|
||||
MRB_API int32_t
|
||||
mrb_debug_get_line(mrb_irep *irep, uint32_t pc)
|
||||
{
|
||||
if (irep && pc < irep->ilen) {
|
||||
@@ -106,7 +106,7 @@ mrb_debug_get_line(mrb_irep *irep, uint32_t pc)
|
||||
return -1;
|
||||
}
|
||||
|
||||
mrb_irep_debug_info *
|
||||
MRB_API mrb_irep_debug_info *
|
||||
mrb_debug_info_alloc(mrb_state *mrb, mrb_irep *irep)
|
||||
{
|
||||
static const mrb_irep_debug_info initial = { 0, 0, NULL };
|
||||
@@ -119,7 +119,7 @@ mrb_debug_info_alloc(mrb_state *mrb, mrb_irep *irep)
|
||||
return ret;
|
||||
}
|
||||
|
||||
mrb_irep_debug_info_file *
|
||||
MRB_API mrb_irep_debug_info_file *
|
||||
mrb_debug_info_append_file(mrb_state *mrb, mrb_irep *irep,
|
||||
uint32_t start_pos, uint32_t end_pos)
|
||||
{
|
||||
@@ -198,7 +198,7 @@ mrb_debug_info_append_file(mrb_state *mrb, mrb_irep *irep,
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
MRB_API void
|
||||
mrb_debug_info_free(mrb_state *mrb, mrb_irep_debug_info *d)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
Reference in New Issue
Block a user