Skip to content

Commit

Permalink
MacEditor支持
Browse files Browse the repository at this point in the history
  • Loading branch information
ale committed Jan 13, 2023
1 parent ee6f0ae commit a3d6667
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
using System;
using System.IO;

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
namespace MikuLuaProfiler
{
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN
#if UNITY_EDITOR
namespace MikuLuaProfiler
{
using System;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Common/Struct/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Common/Struct/ObjectPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/*
* 对象池
*/
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;

Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Common/Struct/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || (USE_LUA_PROFILER && UNITY_ANDROID)
#if UNITY_EDITOR || (USE_LUA_PROFILER && UNITY_ANDROID)
using System;
using System.Runtime.InteropServices;
using UnityEngine;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/Hook/WindowsHook/LDasm.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

#if UNITY_EDITOR_WIN || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
#if UNITY_EDITOR || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
namespace MikuLuaProfiler
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Purpose:
* ==============================================================================
*/
#if UNITY_EDITOR_WIN || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
#if UNITY_EDITOR || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
namespace MikuLuaProfiler
{
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
#if UNITY_EDITOR || (USE_LUA_PROFILER && UNITY_STANDALONE_WIN)
using System;
using System.Runtime.InteropServices;

Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/LuaDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/LuaProfiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;

namespace MikuLuaProfiler
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/Parse/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
namespace MikuLuaProfiler
{
public static class LuaConf
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/Parse/LLex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Purpose:
* ==============================================================================
*/
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.Text;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/Parse/Parse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Purpose:
* ==============================================================================
*/
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;

Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/Driver/Parse/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
#define API_CHECK
#define UNILUA_ASSERT

Expand Down
5 changes: 4 additions & 1 deletion LuaProfiler/Runtime/Core/LuaHookSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* ==============================================================================
*/

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.Text;
Expand Down Expand Up @@ -71,6 +71,9 @@ public static void RegisterAction(Action a)
#endif
public static void OnStartGame()
{
#if UNITY_EDITOR_OSX
return;
#endif
#if UNITY_EDITOR
if (!Application.isPlaying) return;
#endif
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/MBinaryReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.IO;
using System.Text;

#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
namespace MikuLuaProfiler
{
public class MBinaryReader : BinaryReader
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/MBinaryWriter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System.Collections.Generic;
using System.IO;
using System.Text;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/NetWorkMgr.Server.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER

using System;
using System.Net;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/NetWorkMgr.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER

using System;
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/Packet/LuaRefInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.IO;

Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/Packet/PKGDisconnect.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
namespace MikuLuaProfiler
{
[PacketMsg(MsgHead.DisConnect)]
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/Packet/PKGHeartBeat.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
namespace MikuLuaProfiler
{
[PacketMsg(MsgHead.HeartBeat)]
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/Packet/PacketBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion LuaProfiler/Runtime/Core/NetWork/Packet/Sample.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR_WIN || USE_LUA_PROFILER
#if UNITY_EDITOR || USE_LUA_PROFILER
using System;
using System.Collections.Generic;
using System.IO;
Expand Down

0 comments on commit a3d6667

Please sign in to comment.