コード例 #1
0
ファイル: EngineCallback.cs プロジェクト: Orvid/Cosmos
    // Call this one for internal Cosmos dev.
    // Can be turned off and should be turned off by default. Use an IFDEF or something.
    public void OnOutputString(string outputString) {
#if DEV
        //System.Diagnostics.Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId);
        var eventObject = new AD7OutputDebugStringEvent(outputString);
        Send(eventObject, AD7OutputDebugStringEvent.IID, null);
#endif
    }
コード例 #2
0
        // This is the user version, messages directly from Cosmos user code
        public void OnOutputStringUser(string outputString)
        {
            //System.Diagnostics.Debug.Assert(Worker.CurrentThreadId == m_engine.DebuggedProcess.PollThreadId);
            var eventObject = new AD7OutputDebugStringEvent(outputString);

            Send(eventObject, AD7OutputDebugStringEvent.IID, null);
        }