[beast/win32] Use inline to protect against having multiple identical clashing functions.
- From: Stefan Westerfeld <stw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [beast/win32] Use inline to protect against having multiple identical clashing functions.
- Date: Tue, 1 Sep 2009 19:39:19 +0000 (UTC)
commit 14ab20f882f24846105cce4ca09911480cf9141a
Author: Stefan Westerfeld <stefan space twc de>
Date: Tue Sep 1 19:36:47 2009 +0200
Use inline to protect against having multiple identical clashing functions.
bse/bsecxxplugin.hh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/bse/bsecxxplugin.hh b/bse/bsecxxplugin.hh
index a332907..f76b681 100644
--- a/bse/bsecxxplugin.hh
+++ b/bse/bsecxxplugin.hh
@@ -90,7 +90,7 @@ extern ::BseExportIdentity bse_builtin_export_identity; /* sync with bseplugin.h
(::NameSpace::bse_type_keeper__3##EnumType.get_type ())
#define BSE_CXX_DECLARE_ENUM(EnumType,EnumName,N,ICode) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> BseExportNode* \
+ template<> inline BseExportNode* \
bse_export_node<EnumType> () \
{ \
static BseExportNodeEnum enode = { \
@@ -144,7 +144,7 @@ EnumValue (int int_value,
(::NameSpace::bse_type_keeper__1##RecordType.get_type ())
#define BSE_CXX_DECLARE_RECORD(RecordType) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> BseExportNode* \
+ template<> inline BseExportNode* \
bse_export_node<RecordType> () \
{ \
static BseExportNodeBoxed bnode = { \
@@ -180,7 +180,7 @@ EnumValue (int int_value,
(::NameSpace::bse_type_keeper__2##SequenceType.get_type ())
#define BSE_CXX_DECLARE_SEQUENCE(SequenceType) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> BseExportNode* \
+ template<> inline BseExportNode* \
bse_export_node<SequenceType> () \
{ \
static BseExportNodeBoxed bnode = { \
@@ -218,7 +218,7 @@ EnumValue (int int_value,
extern ::Bse::ExportTypeKeeper bse_type_keeper__9##ProcType;
#define BSE_CXX_REGISTER_PROCEDURE(ProcType) \
template<class C> static ::BseExportNode* bse_export_node (); \
- template<> ::BseExportNode* \
+ template<> inline ::BseExportNode* \
bse_export_node<Procedure::ProcType> () \
{ \
static ::BseExportNodeProc pnode = { \
@@ -258,7 +258,7 @@ EnumValue (int int_value,
#define BSE_CXX_REGISTER_EFFECT(Effect) \
BSE_CXX_DEFINE_STATIC_DATA (Effect##Base); \
template<class C> static ::BseExportNode* bse_export_node (); \
- template<> ::BseExportNode* \
+ template<> inline ::BseExportNode* \
bse_export_node<Effect> () \
{ \
static ::BseExportNodeClass cnode = { \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]