项目配置更新

增加debug参数

更新三方库

稳定性优化

增加模块:http客户端、编解码、sqlserver客户端、时间、锁
This commit is contained in:
xx
2024-05-27 20:48:45 +08:00
parent e718d01e85
commit 6128e2064b
127 changed files with 11762 additions and 113 deletions

View File

@@ -6,8 +6,8 @@
static ylib::counter<uint64> s_counter_guid;
void module::regist_globalfuns(sol::state& lua)
{
//lua.set_function("global_get", module::global_get);
//lua.set_function("global_regist", module::global_regist);
lua.set_function("global_get", module::global_get);
lua.set_function("global_set", module::global_set);
lua.set_function("make_software_guid", module::make_software_guid);
lua.set_function("throw_string", module::throw_string);
}
@@ -21,6 +21,16 @@ bool module::global_regist(const std::string& name, void* ptr, sol::this_state t
return global::getInstance()->regist_ptr(name,ptr, ts);
}
void module::global_set(const std::string& name, VarType value)
{
global::getInstance()->set(name,value);
}
VarType module::global_get(const std::string& name, sol::this_state s)
{
return global::getInstance()->get(name,s);
}
#if 0
void* module::global_get(const std::string& name)
{