Skip to content

Commit

Permalink
Define export symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Sep 3, 2014
1 parent f23cbd4 commit 5e942a7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions include/explorer/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@
#include <bitcoin/bitcoin.hpp>
#include <wallet/wallet.hpp>

// We use the generic helper definitions in libbitcoin to define BCX_API
// and BCX_INTERNAL. BCX_API is used for the public API symbols. It either DLL
// imports or DLL exports (or does nothing for static build) BCX_INTERNAL is
// used for non-api symbols.

#if defined BCX_STATIC
#define BCX_API
#define BCX_INTERNAL
#elif defined BCS_DLL
#define BCX_API BC_HELPER_DLL_EXPORT
#define BCX_INTERNAL BC_HELPER_DLL_LOCAL
#else
#define BCX_API BC_HELPER_DLL_IMPORT
#define BCX_INTERNAL BC_HELPER_DLL_LOCAL
#endif

#define PROPERTY(type, name) \
public: virtual type get_##name() { return name##_; } \
public: virtual void set_##name(type value) { name##_ = value; } \
Expand Down

0 comments on commit 5e942a7

Please sign in to comment.