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