From 949187b049ce329c93d6639b91e244f2b208c807 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 28 Jan 2021 14:40:29 -0300 Subject: Optimizations for line hook The function 'changedline' tries harder to avoid calling 'luaG_getfuncline' plus small changes in the use of 'L->oldpc'. --- lcode.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lcode.c') diff --git a/lcode.c b/lcode.c index d8d353fe..9741d7cd 100644 --- a/lcode.c +++ b/lcode.c @@ -314,15 +314,6 @@ void luaK_patchtohere (FuncState *fs, int list) { } -/* -** MAXimum number of successive Instructions WiTHout ABSolute line -** information. -*/ -#if !defined(MAXIWTHABS) -#define MAXIWTHABS 120 -#endif - - /* limit for difference between lines in relative line info. */ #define LIMLINEDIFF 0x80 -- cgit v1.2.3-55-g6feb