mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
Merge pull request #515 from kjk/patch-1
fix bindForeignMethod() example
This commit is contained in:
@ -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(_,_).
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user