diff --git a/src/pallene/coder.lua b/src/pallene/coder.lua index 15aa7762..f0bb5751 100644 --- a/src/pallene/coder.lua +++ b/src/pallene/coder.lua @@ -456,7 +456,7 @@ function Coder:pallene_entry_point_definition(f_id) local slots_needed = max_frame_size + self.max_lua_call_stack_usage[func] table.insert(prologue, util.render([[ - PALLENE_C_FRAMEENTER(L, "$name"); + PALLENE_C_FRAMEENTER("$name"); ]], { name = func.name })); @@ -610,7 +610,7 @@ function Coder:lua_entry_point_definition(f_id) cargs = cargs + 1 end local frameenter = util.render([[ - PALLENE_LUA_FRAMEENTER(L, $fun_name); + PALLENE_LUA_FRAMEENTER($fun_name); ]], { fun_name = self:lua_entry_point_name(f_id), }) diff --git a/src/pallene/pallenelib.lua b/src/pallene/pallenelib.lua index b9e40a18..6cb03050 100644 --- a/src/pallene/pallenelib.lua +++ b/src/pallene/pallenelib.lua @@ -81,13 +81,13 @@ return [==[ #define PALLENE_PREPARE_LUA_FRAME(fnptr) #endif // PT_DEBUG -#define PALLENE_C_FRAMEENTER(L, name) \ +#define PALLENE_C_FRAMEENTER(name) \ PALLENE_PREPARE_C_FRAME(name); \ - PALLENE_TRACER_FRAMEENTER(L, fnstack, &_frame); + PALLENE_TRACER_FRAMEENTER(fnstack, &_frame); -#define PALLENE_LUA_FRAMEENTER(L, fnptr) \ +#define PALLENE_LUA_FRAMEENTER(fnptr) \ PALLENE_PREPARE_LUA_FRAME(fnptr); \ - PALLENE_TRACER_FRAMEENTER(L, fnstack, &_frame); \ + PALLENE_TRACER_FRAMEENTER(fnstack, &_frame); \ PALLENE_PREPARE_FINALIZER() #define PALLENE_SETLINE(line) PALLENE_TRACER_SETLINE(fnstack, line)