Skip to content

Commit

Permalink
Addresses #24.
Browse files Browse the repository at this point in the history
  • Loading branch information
Enfernuz committed Feb 20, 2019
1 parent 111074e commit 432cf8c
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions impl/procedure_wrappers.lua
Expand Up @@ -674,25 +674,31 @@ end
-- TODO: test
module["getParamEx"] = function (args)

--no post-processing ?
local result = requireNonNil(_G.getParamEx(args.class_code, args.sec_code, args.param_name)) -- always returns a table

--post-processing:
--result.param_type AS IS
--result.param_value AS IS
--result.param_image AS IS
--result.param_image from CP1251 to UTF8
--result.result AS IS

return requireNonNil(_G.getParamEx(args.class_code, args.sec_code, args.param_name)) -- always returns a table
result.param_image = utils.Cp1251ToUtf8(result.param_image)

return result
end

-- TODO: test
module["getParamEx2"] = function (args)

--no post-processing ?
local result = requireNonNil(_G.getParamEx2(args.class_code, args.sec_code, args.param_name)) -- always returns a table

--post-processing:
--result.param_type AS IS
--result.param_value AS IS
--result.param_image AS IS
--result.param_image from CP1251 to UTF8
--result.result AS IS

return requireNonNil(_G.getParamEx2(args.class_code, args.sec_code, args.param_name)) -- always returns a table
result.param_image = utils.Cp1251ToUtf8(result.param_image)

return result
end

-- TODO: test
Expand Down

0 comments on commit 432cf8c

Please sign in to comment.