Skip to content

Commit 8454b4d

Browse files
committed
add
1 parent 90355f3 commit 8454b4d

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

.vscode/launch.json

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "(Windows) 启动",
9+
"type": "cppvsdbg",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/bin/debug/dmluademo.exe",
12+
"args": [],
13+
"stopAtEntry": false,
14+
"cwd": "${fileDirname}",
15+
"environment": [],
16+
"console": "externalTerminal"
17+
},
718
{
819
"name": "launch process",
920
"type": "lua",

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ SET(LUA_MODULE lua54)
1212

1313
ADD_DEFINITIONS(-DLUA_COMPAT_MODULE -DLUA_COMPAT_APIINTCASTS)
1414

15+
ShowEnvironment()
16+
1517
LuaModuleImport("${LUA_MODULE}" "libtolua" "src/libtolua" "")
1618

1719
ExeImport("tool" "${LUA_MODULE};libtolua")

bin/script/type/type.lua

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
-- lua script
3+
module (..., package.seeall)
4+
5+
function TypeTest(chData, wData, dwData, qwData, sData, nData, llData ,fData, dbData)
6+
print("==================================")
7+
print(chData .. " " .. wData .. " " .. dwData .. " " .. qwData .. " " .. sData .. " " .. nData .. " " .. llData .. " " .. fData .. " " .. dbData)
8+
print("==================================")
9+
end

samples/dmluademo/main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ TEST(luabasetest, luabasetest)
6060
if (r >= 0)
6161
{
6262
std::cout << r << std::endl;
63+
EXPECT_TRUE(r == 4294967295ULL * 4294967295ULL);
6364
}
6465
}
6566
}

0 commit comments

Comments
 (0)