#ifdef _WIN32
REGISTER_SAFE_SCRIPTFUNCTION(escape_create_process_arg, &Utility::EscapeCreateProcessArg);
#endif /* _WIN32 */
-REGISTER_SCRIPTFUNCTION(__ptr, &ScriptUtils::Ptr);
+REGISTER_SCRIPTFUNCTION(ptr, &ScriptUtils::Ptr);
String ScriptUtils::CastString(const Value& value)
{
ConfigItem::ItemList ConfigItem::m_UnnamedItems;
ConfigItem::IgnoredItemList ConfigItem::m_IgnoredItems;
+#ifdef I2_DEBUG
REGISTER_SCRIPTFUNCTION(__run_with_activation_context, &ConfigItem::RunWithActivationContext);
+#endif /* I2_DEBUG */
/**
* Constructor for the ConfigItem class.
return true;
}
+#ifdef I2_DEBUG
bool ConfigItem::RunWithActivationContext(const Function::Ptr& function)
{
ActivationScope scope;
return true;
}
+#endif /* I2_DEBUG */
std::vector<ConfigItem::Ptr> ConfigItem::GetItems(const String& type)
{
static bool CommitItems(const ActivationContext::Ptr& context, WorkQueue& upq, std::vector<ConfigItem::Ptr>& newItems);
static bool ActivateItems(WorkQueue& upq, const std::vector<ConfigItem::Ptr>& newItems, bool runtimeCreated = false);
+#ifdef I2_DEBUG
static bool RunWithActivationContext(const Function::Ptr& function);
+#endif /* I2_DEBUG */
static std::vector<ConfigItem::Ptr> GetItems(const String& type);