src/lua.js
function getmain(L) {
	L.rawgeti(Lua.defines.REGISTRYINDEX, Lua.defines.RIDX_MAINTHREAD);
	var _L = L.tothread(-1);
	L.pop(1);
	return _L;
}
function getmain(L) {
	L.rawgeti(Lua.defines.REGISTRYINDEX, Lua.defines.RIDX_MAINTHREAD);
	var _L = L.tothread(-1);
	L.pop(1);
	return _L;
}
function getmain ( L ) { L . rawgeti ( Lua . defines . REGISTRYINDEX , Lua . defines . RIDX_MAINTHREAD ) ; var _L = L . tothread ( - 1 ) ; L . pop ( 1 ) ; return _L ; }
Get main lua_State of given thread
Get main lua_State of given thread