mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fixed wandering filename problem
This commit is contained in:
+6
-1
@@ -62,7 +62,12 @@ typedef unsigned int stack_type;
|
||||
#define CMDARG_P() BITSTACK_SET_P(p->cmdarg_stack)
|
||||
|
||||
#define SET_LINENO(c,n) ((c)->lineno = (n))
|
||||
#define NODE_LINENO(c,n) do {if (n) ((c)->lineno = (n)->lineno);} while (0)
|
||||
#define NODE_LINENO(c,n) do {\
|
||||
if (n) {\
|
||||
(c)->filename_index = (n)->filename_index;\
|
||||
(c)->lineno = (n)->lineno;\
|
||||
}\
|
||||
} while (0)
|
||||
|
||||
#define sym(x) ((mrb_sym)(intptr_t)(x))
|
||||
#define nsym(x) ((node*)(intptr_t)(x))
|
||||
|
||||
Reference in New Issue
Block a user