Skip to content

Instantly share code, notes, and snippets.

@Tak
Created July 14, 2014 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tak/a9ccb6cdae6c0114072f to your computer and use it in GitHub Desktop.
Save Tak/a9ccb6cdae6c0114072f to your computer and use it in GitHub Desktop.
[Conditional ("DEBUG")]
void SmoMoAssert (bool condition, string messageFormat, params object[] messageParams)
{
if (!condition)
Debug.LogError ("Assertion failed: " + string.Format (messageFormat, messageParams));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment