internal static int CSharpWrapperCallerImpl(RealStatePtr L, int funcidx, int top) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); return(translator.CallCSharpWrapper(L, funcidx, top)); } catch (Exception e) { return(LuaAPI.luaL_error(L, "c# exception:" + e)); } }