Skip to content

Commit

Permalink
make set_mt return the table whose meta-table is being set
Browse files Browse the repository at this point in the history
  • Loading branch information
vddCore committed May 19, 2024
1 parent 432b713 commit b4c56fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VirtualMachine/Ceres.Runtime/Ceres.Runtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<LangVersion>11.0</LangVersion>

<Version>0.17.0</Version>
<Version>0.17.1</Version>
<AssemblyName>Ceres.Runtime</AssemblyName>
<AssemblyTitle>Ceres.Runtime</AssemblyTitle>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
2 changes: 1 addition & 1 deletion VirtualMachine/Ceres.Runtime/Modules/TableModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private static DynamicValue SetMetaTable(Fiber fiber, params DynamicValue[] args
}

table.MetaTable = mt;
return DynamicValue.Nil;
return table;
}

[RuntimeModuleFunction("get_mt")]
Expand Down

0 comments on commit b4c56fd

Please sign in to comment.