From 2e02273673ffd60004f29517b212aec248668479 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 9 Jan 2015 10:40:20 -0700 Subject: [PATCH] Add .bundle to module search extensions --- include/chaiscript/language/chaiscript_engine.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/language/chaiscript_engine.hpp b/include/chaiscript/language/chaiscript_engine.hpp index 71ac3251..47e68fde 100644 --- a/include/chaiscript/language/chaiscript_engine.hpp +++ b/include/chaiscript/language/chaiscript_engine.hpp @@ -706,7 +706,7 @@ namespace chaiscript /// \param[in] t_module_name Name of the module to load /// /// The module is searched for in the registered module path folders (chaiscript::ChaiScript::ChaiScript) - /// and with standard prefixes and postfixes: ("lib"|"")\(".dll"|".so"|""). + /// and with standard prefixes and postfixes: ("lib"|"")\(".dll"|".so"|".bundle"|""). /// /// Once the file is located, the system looks for the symbol "create_chaiscript_module_\". /// If no file can be found matching the search criteria and containing the appropriate entry point @@ -725,7 +725,7 @@ namespace chaiscript std::vector prefixes{"lib", "cyg", ""}; - std::vector postfixes{".dll", ".so", ""}; + std::vector postfixes{".dll", ".so", ".bundle", ""}; for (auto & elem : m_modulepaths) {