Skip to content

Commit

Permalink
Merge pull request #369 from watson-developer-cloud/368-platform-depe…
Browse files Browse the repository at this point in the history
…ndent-compilation

Check for errors in disabled ifdefs
  • Loading branch information
mediumTaj authored Apr 16, 2018
2 parents 45f47a1 + 00cedb4 commit a836fed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void OnGetClassifiers(ClassifiersBrief classifiers, Dictionary<string, o
}

#if DELETE_TRAINED_CLASSIFIER
private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier, Dictionary<string, object> customData)
private void OnGetClassifier(ClassifierVerbose classifier, Dictionary<string, object> customData)
{
Log.Debug("ExampleVisualRecognition.OnGetClassifier()", "VisualRecognition - GetClassifier Response: {0}", customData["json"].ToString());
_getClassifierTested = true;
Expand All @@ -190,7 +190,7 @@ private void OnDeleteClassifier(bool success, Dictionary<string, object> customD
#endif

#if TRAIN_CLASSIFIER
private void OnTrainClassifier(GetClassifiersPerClassifierVerbose classifier, Dictionary<string, object> customData)
private void OnTrainClassifier(ClassifierVerbose classifier, Dictionary<string, object> customData)
{
Log.Debug("ExampleVisualRecognition.OnTrainClassifier()", "{0}", customData["json"].ToString());

Expand Down
2 changes: 1 addition & 1 deletion Scripts/Connection/RESTConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ private class DeleteRequest
public IEnumerator Send(string url, Dictionary<string, string> headers)
{
#if ENABLE_DEBUGGING
Log.Debug("DeleteRequest.Send()", "DeleteRequest, Send: {0}, _thread:{1}", url, _thread);
Log.Debug("DeleteRequest.Send()", "DeleteRequest, Send: {0}", url);
#endif

URL = url;
Expand Down
3 changes: 3 additions & 0 deletions Scripts/Utilities/Runnable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
#if ENABLE_RUNNABLE_DEBUGGING
using IBM.Watson.DeveloperCloud.Logging;
#endif

namespace IBM.Watson.DeveloperCloud.Utilities
{
Expand Down

0 comments on commit a836fed

Please sign in to comment.