From 1f0c73686741cbabbcd995ffd1db27bcc3a0d0a5 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 23 Oct 2012 13:05:57 +0300 Subject: Always set "decoda_name" global in a new Lane. --- src/lanes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lanes.c b/src/lanes.c index f2e8aa7..8edf47b 100644 --- a/src/lanes.c +++ b/src/lanes.c @@ -1757,6 +1757,10 @@ LUAG_FUNC( thread_new ) STACK_GROW( L, 2); STACK_GROW( L2, 3); + // give a default "Lua" name to the thread to see VM name in Decoda debugger + lua_pushfstring( L2, "Lane #%p", L2); + lua_setglobal( L2, "decoda_name"); + ASSERT_L( lua_gettop(L2) == 0); // package.path -- cgit v1.2.3-55-g6feb