aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index a5db50a..87aa8fa 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -750,26 +750,28 @@ LUAG_FUNC(linda_towatch)
750 750
751// ################################################################################################# 751// #################################################################################################
752 752
753namespace global { 753namespace {
754 static luaL_Reg const sLindaMT[] = { 754 namespace local {
755 { "__concat", LG_linda_concat }, 755 static luaL_Reg const sLindaMT[] = {
756 { "__tostring", LG_linda_tostring }, 756 { "__concat", LG_linda_concat },
757 { "__towatch", LG_linda_towatch }, // Decoda __towatch support 757 { "__tostring", LG_linda_tostring },
758 { "cancel", LG_linda_cancel }, 758 { "__towatch", LG_linda_towatch }, // Decoda __towatch support
759 { "count", LG_linda_count }, 759 { "cancel", LG_linda_cancel },
760 { "deep", LG_linda_deep }, 760 { "count", LG_linda_count },
761 { "dump", LG_linda_dump }, 761 { "deep", LG_linda_deep },
762 { "get", LG_linda_get }, 762 { "dump", LG_linda_dump },
763 { "limit", LG_linda_limit }, 763 { "get", LG_linda_get },
764 { "receive", LG_linda_receive }, 764 { "limit", LG_linda_limit },
765 { "send", LG_linda_send }, 765 { "receive", LG_linda_receive },
766 { "set", LG_linda_set }, 766 { "send", LG_linda_send },
767 { nullptr, nullptr } 767 { "set", LG_linda_set },
768 }; 768 { nullptr, nullptr }
769} // namespace global 769 };
770 } // namespace local
771} // namespace
770// it's somewhat awkward to instanciate the LindaFactory here instead of lindafactory.cpp, 772// it's somewhat awkward to instanciate the LindaFactory here instead of lindafactory.cpp,
771// but that's necessary to provide s_LindaMT without exposing it outside linda.cpp. 773// but that's necessary to provide s_LindaMT without exposing it outside linda.cpp.
772/*static*/ LindaFactory LindaFactory::Instance{ global::sLindaMT }; 774/*static*/ LindaFactory LindaFactory::Instance{ local::sLindaMT };
773 775
774// ################################################################################################# 776// #################################################################################################
775// ################################################################################################# 777// #################################################################################################