Mercurial > hg > orthanc
comparison Core/Lua/LuaContext.h @ 3992:f9863630ec7f
working on the shared library for Orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 16:07:01 +0200 |
parents | 94f4a18a79cc |
children | 05a363186da6 |
comparison
equal
deleted
inserted
replaced
3991:5d2348b39392 | 3992:f9863630ec7f |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 // To have ORTHANC_ENABLE_LUA defined if using the shared library | |
37 #include "../OrthancFramework.h" | |
38 | |
36 #if !defined(ORTHANC_ENABLE_LUA) | 39 #if !defined(ORTHANC_ENABLE_LUA) |
37 # error The macro ORTHANC_ENABLE_LUA must be defined | 40 # error The macro ORTHANC_ENABLE_LUA must be defined |
38 #endif | 41 #endif |
39 | 42 |
40 #if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES) | 43 #if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES) |
58 | 61 |
59 #include <boost/noncopyable.hpp> | 62 #include <boost/noncopyable.hpp> |
60 | 63 |
61 namespace Orthanc | 64 namespace Orthanc |
62 { | 65 { |
63 class LuaContext : public boost::noncopyable | 66 class ORTHANC_PUBLIC LuaContext : public boost::noncopyable |
64 { | 67 { |
65 private: | 68 private: |
66 friend class LuaFunctionCall; | 69 friend class LuaFunctionCall; |
67 | 70 |
68 lua_State *lua_; | 71 lua_State *lua_; |