comparison Core/Lua/LuaFunctionCall.cpp @ 1465:905842836ad4

sample Lua script to write DICOM series to disk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 27 Jul 2015 17:33:47 +0200
parents 3f7722179467
children f967bdf8534e
comparison
equal deleted inserted replaced
1464:f401dd90b35e 1465:905842836ad4
59 } 59 }
60 60
61 void LuaFunctionCall::PushString(const std::string& value) 61 void LuaFunctionCall::PushString(const std::string& value)
62 { 62 {
63 CheckAlreadyExecuted(); 63 CheckAlreadyExecuted();
64 lua_pushstring(context_.lua_, value.c_str()); 64 lua_pushlstring(context_.lua_, value.c_str(), value.size());
65 } 65 }
66 66
67 void LuaFunctionCall::PushBoolean(bool value) 67 void LuaFunctionCall::PushBoolean(bool value)
68 { 68 {
69 CheckAlreadyExecuted(); 69 CheckAlreadyExecuted();