forked from jnthn/6model
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'master' of github.com:diakopter/6model
- Loading branch information
Showing
15 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,31 @@ | ||
| function Ops.llmapping_get_at_key(TC, LLMapping, Key) | ||
| if (LLMapping.class == "P6mapping") then | ||
| --if (LLMapping.class == "P6mapping") then | ||
| local Storage = LLMapping.Storage; | ||
| local StrKey = Ops.unbox_str(TC, Key); | ||
| return Storage[StrKey]; | ||
| else | ||
| error("Cannot use llmapping_get_at_key if representation is not P6mapping"); | ||
| end | ||
| --else | ||
| -- error("Cannot use llmapping_get_at_key if representation is not P6mapping"); | ||
| --end | ||
| end | ||
| Ops[70] = Ops.llmapping_get_at_key; | ||
|
|
||
| function Ops.llmapping_bind_at_key(TC, LLMapping, Key, Value) | ||
| if (LLMapping.class == "P6mapping") then | ||
| --if (LLMapping.class == "P6mapping") then | ||
| local Storage = LLMapping.Storage; | ||
| local StrKey = Ops.unbox_str(TC, Key); | ||
| Storage[StrKey] = Value; | ||
| return Value; | ||
| else | ||
| error("Cannot use llmapping_bind_at_key if representation is not P6mapping"); | ||
| end | ||
| --else | ||
| -- error("Cannot use llmapping_bind_at_key if representation is not P6mapping"); | ||
| --end | ||
| end | ||
| Ops[71] = Ops.llmapping_bind_at_key; | ||
|
|
||
| function Ops.llmapping_elems(TC, LLMapping) | ||
| if (LLMapping.class == "P6mapping") then | ||
| --if (LLMapping.class == "P6mapping") then | ||
| return Ops.box_int(TC, LLMapping.Storage.Count, TC.DefaultIntBoxType); | ||
| else | ||
| error("Cannot use llmapping_elems if representation is not P6mapping"); | ||
| end | ||
| --else | ||
| -- error("Cannot use llmapping_elems if representation is not P6mapping"); | ||
| --end | ||
| end | ||
| Ops[72] = Ops.llmapping_elems; |