Skip to content

Commit

Permalink
Traceback API fix
Browse files Browse the repository at this point in the history
  • Loading branch information
singul4ri7y committed Aug 6, 2024
1 parent ff1cdb0 commit a329f07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pallene/coder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));
Expand Down Expand Up @@ -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),
})
Expand Down
8 changes: 4 additions & 4 deletions src/pallene/pallenelib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a329f07

Please sign in to comment.