diff options
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r-- | src/lj_obj.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index 164ec853..cdb90dff 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -364,7 +364,7 @@ typedef struct GCproto { | |||
364 | MSize sizeuvname; /* Size of upvalue names array (may be 0). */ | 364 | MSize sizeuvname; /* Size of upvalue names array (may be 0). */ |
365 | BCLine linedefined; /* First line of the function definition. */ | 365 | BCLine linedefined; /* First line of the function definition. */ |
366 | BCLine lastlinedefined; /* Last line of the function definition. */ | 366 | BCLine lastlinedefined; /* Last line of the function definition. */ |
367 | BCLine *lineinfo; /* Map from bytecode instructions to source lines. */ | 367 | MRef lineinfo; /* Map from bytecode instructions to source lines. */ |
368 | struct VarInfo *varinfo; /* Names and extents of local variables. */ | 368 | struct VarInfo *varinfo; /* Names and extents of local variables. */ |
369 | MRef uvname; /* Array of upvalue names (GCRef of GCstr). */ | 369 | MRef uvname; /* Array of upvalue names (GCRef of GCstr). */ |
370 | GCRef chunkname; /* Name of the chunk this function was defined in. */ | 370 | GCRef chunkname; /* Name of the chunk this function was defined in. */ |
@@ -393,6 +393,9 @@ typedef struct GCproto { | |||
393 | check_exp((uintptr_t)(idx) < (pt)->sizeuvname, \ | 393 | check_exp((uintptr_t)(idx) < (pt)->sizeuvname, \ |
394 | gcref(mref((pt)->uvname, GCRef)[(idx)])) | 394 | gcref(mref((pt)->uvname, GCRef)[(idx)])) |
395 | #define proto_chunkname(pt) (gco2str(gcref((pt)->chunkname))) | 395 | #define proto_chunkname(pt) (gco2str(gcref((pt)->chunkname))) |
396 | #define proto_lineinfo(pt) (mref((pt)->lineinfo, BCLine)) | ||
397 | #define proto_line(pt, pos) \ | ||
398 | check_exp((uintptr_t)(pos) < (pt)->sizebc, proto_lineinfo(pt)[(pos)]) | ||
396 | 399 | ||
397 | /* -- Upvalue object ------------------------------------------------------ */ | 400 | /* -- Upvalue object ------------------------------------------------------ */ |
398 | 401 | ||