/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/lua/cpp11_template_explicit_runme.lua
11 строк
360 B
Erez Geva
More Lua tests (#3405)
31 май 2026, 17:09
31 май 2026, 17:09
a1b3ca8
Код
Авторство
О чём код?
local v=require("cpp11_template_explicit") -- Call variants of the same templated function local t1 = v.my_templated_function_int(1,1.0) local t2 = v.my_templated_function_A(2,2.0) local t3 = v.my_templated_function_TemperInt(3,3.0) -- Check return types assert(type(t1) == "number") assert(swig_type(t2) == "A *") assert(swig_type(t3) == "Temper< int > *")