comparison Core/Lua/LuaContext.cpp @ 4031:e3b3af80732d

ServerResources, and moving EmbeddedResourceHttpHandler from Core to OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 21:31:13 +0200
parents 05a363186da6
children
comparison
equal deleted inserted replaced
4030:100fbe970762 4031:e3b3af80732d
610 *output = log_; 610 *output = log_;
611 } 611 }
612 } 612 }
613 613
614 614
615 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
616 void LuaContext::Execute(EmbeddedResources::FileResourceId resource)
617 {
618 std::string command;
619 EmbeddedResources::GetFileResource(command, resource);
620 ExecuteInternal(NULL, command);
621 }
622 #endif
623
624
625 bool LuaContext::IsExistingFunction(const char* name) 615 bool LuaContext::IsExistingFunction(const char* name)
626 { 616 {
627 lua_settop(lua_, 0); 617 lua_settop(lua_, 0);
628 lua_getglobal(lua_, name); 618 lua_getglobal(lua_, name);
629 return lua_type(lua_, -1) == LUA_TFUNCTION; 619 return lua_type(lua_, -1) == LUA_TFUNCTION;