Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Table, hashing, meta-table (tagged method).
- Loading branch information
1 parent
0489b61
commit 6a2199a
Showing
5 changed files
with
85 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
|
||
const TValue *luaT_gettm (Table *events, TMS event, TString *ename) | ||
====================================================================== |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
|
||
Basic Types | ||
----------------------------------------------------------- | ||
The enum of "basic types" is: LUA_T... | ||
A "basic type" enum occupies only the right-most forth bits. | ||
The fifth right-most bit represent the "sub-type": | ||
- short/long string | ||
- c/Lua closure | ||
... | ||
The seventh right-most bit represent if the type is collectable. | ||
|
||
|
||
/* | ||
** tags for Tagged Values have the following use of bits: | ||
** bits 0-3: actual tag (a LUA_T* value) | ||
** bits 4-5: variant bits | ||
** bit 6: whether value is collectable | ||
*/ | ||
|