diff options
| -rw-r--r-- | docs/index.html | 12 | ||||
| -rw-r--r-- | src/keeper.cpp | 10 | ||||
| -rw-r--r-- | src/lindafactory.cpp | 2 |
3 files changed, 22 insertions, 2 deletions
diff --git a/docs/index.html b/docs/index.html index 6e2b4ed..db9ec5a 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -1329,7 +1329,17 @@ | |||
| 1329 | </p> | 1329 | </p> |
| 1330 | 1330 | ||
| 1331 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | 1331 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> |
| 1332 | [table] = linda_h:dump() | 1332 | linda_h:dump() -> |
| 1333 | { | ||
| 1334 | [<key>] = | ||
| 1335 | { | ||
| 1336 | first = <n> | ||
| 1337 | count = <n> | ||
| 1338 | limit = <n>|'unlimited' | ||
| 1339 | fifo = { <array of values> } | ||
| 1340 | } | ||
| 1341 | ... | ||
| 1342 | } | ||
| 1333 | </pre></td></tr></table> | 1343 | </pre></td></tr></table> |
| 1334 | 1344 | ||
| 1335 | <p> | 1345 | <p> |
diff --git a/src/keeper.cpp b/src/keeper.cpp index cdbfac9..8261f5a 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
| @@ -656,6 +656,16 @@ void Keeper::operator delete[](void* p_, Universe* U_) | |||
| 656 | // ################################################################################################# | 656 | // ################################################################################################# |
| 657 | 657 | ||
| 658 | // only used by linda:dump() and linda:__towatch() for debugging purposes | 658 | // only used by linda:dump() and linda:__towatch() for debugging purposes |
| 659 | // table is populated as follows: | ||
| 660 | // { | ||
| 661 | // [<key>] = { | ||
| 662 | // first = <n>, | ||
| 663 | // count = <n>, | ||
| 664 | // limit = <n> | 'unlimited', | ||
| 665 | // fifo = { <array of values> } | ||
| 666 | // } | ||
| 667 | // ... | ||
| 668 | // } | ||
| 659 | int Keeper::PushLindaStorage(Linda& linda_, DestState const L_) | 669 | int Keeper::PushLindaStorage(Linda& linda_, DestState const L_) |
| 660 | { | 670 | { |
| 661 | Keeper* const _keeper{ linda_.whichKeeper() }; | 671 | Keeper* const _keeper{ linda_.whichKeeper() }; |
diff --git a/src/lindafactory.cpp b/src/lindafactory.cpp index d5ebc9b..771a4c3 100644 --- a/src/lindafactory.cpp +++ b/src/lindafactory.cpp | |||
| @@ -105,7 +105,7 @@ std::string_view LindaFactory::moduleName() const | |||
| 105 | DeepPrelude* LindaFactory::newDeepObjectInternal(lua_State* const L_) const | 105 | DeepPrelude* LindaFactory::newDeepObjectInternal(lua_State* const L_) const |
| 106 | { | 106 | { |
| 107 | // we always expect name and group at the bottom of the stack (either can be nil). any extra stuff we ignore and keep unmodified | 107 | // we always expect name and group at the bottom of the stack (either can be nil). any extra stuff we ignore and keep unmodified |
| 108 | std::string_view _linda_name{ luaG_tostring(L_, 1) }; | 108 | std::string_view _linda_name{ lua_isnil(L_, 1) ? "" : luaG_tostring(L_, 1) }; |
| 109 | LindaGroup _linda_group{ static_cast<int>(lua_tointeger(L_, 2)) }; | 109 | LindaGroup _linda_group{ static_cast<int>(lua_tointeger(L_, 2)) }; |
| 110 | 110 | ||
| 111 | // store in the linda the location of the script that created it | 111 | // store in the linda the location of the script that created it |
