mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 06:08:41 +01:00
Fix example C code (#745)
This commit is contained in:
@ -235,14 +235,14 @@ WrenForeignClassMethods bindForeignClass(
|
|||||||
|
|
||||||
if (strcmp(className, "File") == 0)
|
if (strcmp(className, "File") == 0)
|
||||||
{
|
{
|
||||||
methods->allocate = fileAllocate;
|
methods.allocate = fileAllocate;
|
||||||
methods->finalize = fileFinalize;
|
methods.finalize = fileFinalize;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Unknown class.
|
// Unknown class.
|
||||||
methods->allocate = NULL;
|
methods.allocate = NULL;
|
||||||
methods->finalize = NULL;
|
methods.finalize = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return methods;
|
return methods;
|
||||||
|
|||||||
Reference in New Issue
Block a user