about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 10:10:16 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 10:10:16 -0800
commit7623e7069ac9a9fd815950f296399e22ef21430c (patch)
tree1e83e20cc58979f5cbe0264f8280ff3f431b32f4 /src
parent5a44605143362c8d240c20c849593a3739bf9bed (diff)
downloadteliva-7623e7069ac9a9fd815950f296399e22ef21430c.tar.gz
clean up experiment from previous commit
Diffstat (limited to 'src')
-rw-r--r--src/lua.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lua.c b/src/lua.c
index 59c50ca..08c5f92 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -370,16 +370,6 @@ void switch_to_editor (lua_State *L, const char *message) {
   if (Script_name)
     edit(L, Script_name, message);
   else {
-    luaL_newmetatable(L, "__teliva_call_graph_depth");
-    int cgt = lua_gettop(L);
-    printf("cgt: %d\n", cgt);
-    for (lua_pushnil(L); lua_next(L, cgt) != 0;) {
-      const char* function_name = lua_tostring(L, -2);
-      int depth = lua_tointeger(L, -1);
-      printf("%s: %d\n", function_name, depth);
-      lua_pop(L, 1);  // pop value, leave key on stack for next iteration
-    }
-    exit(4);
     Current_definition = "main";
     write_definition_to_file(L, Current_definition, "teliva_editbuffer");
     edit(L, "teliva_editbuffer", /*status message*/ "");