static int GetAbsolutePath(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); AssetUtil obj = (AssetUtil)ToLua.CheckObject <AssetUtil>(L, 1); string arg0 = ToLua.CheckString(L, 2); EAssetType arg1 = (EAssetType)ToLua.CheckObject(L, 3, typeof(EAssetType)); string o = obj.GetAbsolutePath(arg0, arg1); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }