Merge pull request #515 from kjk/patch-1

fix bindForeignMethod() example
This commit is contained in:
Bob Nystrom
2018-03-26 07:52:26 -07:00
committed by GitHub

View File

@ -76,7 +76,7 @@ Something like:
{
if (strcmp(className, "Math") == 0)
{
if (!isStatic && strcmp(signature, "add(_,_)") == 0)
if (isStatic && strcmp(signature, "add(_,_)") == 0)
{
return mathAdd; // C function for Math.add(_,_).
}