Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply Pallene Tracer Error Handler Function #25

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pt-lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,10 @@ int main (int argc, char **argv) {
/* -------- PALLENE TRACER CODE -------- */
(void) pallene_tracer_init(L); /* initialize pallene tracer */
lua_pop(L, 1); /* We do not need the finalizer object here */

/* supply the message handler function with custom tracebacks. */
lua_pushcfunction(L, msghandler);
lua_setglobal(L, "pallene_tracer_errhandler");
hugomg marked this conversation as resolved.
Show resolved Hide resolved
/* -------- PALLENE TRACER CODE END -------- */

lua_pushcfunction(L, &pmain); /* to call 'pmain' in protected mode */
Expand Down
Loading