Add YGConfigGetInstanceCount

Summary:
- depends on #496
- For memory leak unit test
- Expose the API for C#
Closes https://github.com/facebook/yoga/pull/497

Reviewed By: emilsjolander

Differential Revision: D4796190

Pulled By: splhack

fbshipit-source-id: 99e4e78e8dfb3d459cf6cd7103ab252c3748e5a6
This commit is contained in:
Kazuki Sakamoto
2017-04-10 14:22:23 -07:00
committed by Facebook Github Bot
parent 1520749351
commit 8a45ed9671
4 changed files with 18 additions and 1 deletions

View File

@@ -63,5 +63,10 @@ namespace Facebook.Yoga
Native.YGConfigSetPointScaleFactor(_ygConfig, value);
}
}
public static int GetInstanceCount()
{
return Native.YGConfigGetInstanceCount();
}
}
}