Skip to content

Commit

Permalink
Merge pull request #613 from pallene-lang/frameenter-spacing
Browse files Browse the repository at this point in the history
Slightly adjust frameenter/exit in generated C
  • Loading branch information
singul4ri7y authored Jul 9, 2024
2 parents 95c67c9 + 7f12f98 commit eea1836
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pallene/coder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,7 @@ function Coder:pallene_entry_point_definition(f_id)
local frameexit = ""
if self.flags.use_traceback then
table.insert(prologue, util.render([[
/**/
PALLENE_C_FRAMEENTER(L, "$name");
/**/
]], {
name = func.name
}));
Expand Down Expand Up @@ -529,8 +527,8 @@ function Coder:pallene_entry_point_definition(f_id)
${prologue}
/**/
${body}
${ret_mult}
${frameexit}
${ret_mult}
${ret_stat}
}
]], {
Expand Down Expand Up @@ -623,9 +621,7 @@ function Coder:lua_entry_point_definition(f_id)
local cargs = nargs
if self.flags.use_traceback then
frameenter = util.render([[
/**/
PALLENE_LUA_FRAMEENTER(L, $fun_name);
/**/
]], {
fun_name = self:lua_entry_point_name(f_id),
})
Expand Down

0 comments on commit eea1836

Please sign in to comment.