From 76d1dda2402d24f5f43387d13773b3c2d03e180b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 16 Mar 2022 23:28:35 -0700 Subject: bring back hack when caller is main Partially undoes commit f2d29c22f86a88. --- src/teliva.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/teliva.c b/src/teliva.c index 308d4a0..c85e823 100644 --- a/src/teliva.c +++ b/src/teliva.c @@ -369,6 +369,8 @@ void record_metadata_about_function_call (lua_State *L, CallInfo *ci) { const char* caller_name = name_of_global(L, ci, 1); if (caller_name) save_caller(L, function_name, caller_name); + else if (call_graph_depth == 3) + save_caller(L, function_name, "main"); } } -- cgit 1.4.1-2-gfad0