项目配置更新
增加debug参数 更新三方库 稳定性优化 增加模块:http客户端、编解码、sqlserver客户端、时间、锁
This commit is contained in:
@@ -28,3 +28,18 @@ bool global::regist_ptr(const std::string& name, void* value, sol::this_state ts
|
||||
}
|
||||
return m_value_ptr.add(name, value);
|
||||
}
|
||||
|
||||
VarType global::get(const std::string& name, sol::this_state s)
|
||||
{
|
||||
VarType value;
|
||||
if (m_values.get(name, value))
|
||||
{
|
||||
return value;
|
||||
}
|
||||
return sol::make_object(s, sol::nil);
|
||||
}
|
||||
|
||||
void global::set(const std::string& name, VarType value)
|
||||
{
|
||||
m_values.set(name, value, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user