Permalink
Browse files

inline getarg helper functions to avoid linking problems

  • Loading branch information...
1 parent 45d4693 commit 5f2a45042b59847fb3b78bc312d3fa1cfa27fd84 @NotFound committed Jun 12, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 winxedxx.h
View
16 winxedxx.h
@@ -49,35 +49,35 @@ class WxxNCI : public WxxDefault
template<typename NciParam>
-NciParam getarg(WxxObjectArray &args, int i);
+inline NciParam getarg(WxxObjectArray &args, int i);
// Integer types:
template<>
-int getarg(WxxObjectArray &args, int i)
+inline int getarg(WxxObjectArray &args, int i)
{ return args.get_integer_keyed(i); }
template<>
-short getarg(WxxObjectArray &args, int i)
+inline short getarg(WxxObjectArray &args, int i)
{ return args.get_integer_keyed(i); }
template<>
-long getarg(WxxObjectArray &args, int i)
+inline long getarg(WxxObjectArray &args, int i)
{ return args.get_integer_keyed(i); }
// Number types:
template<>
-double getarg(WxxObjectArray &args, int i)
+inline double getarg(WxxObjectArray &args, int i)
{ return args.get_number_keyed(i); }
template<>
-float getarg(WxxObjectArray &args, int i)
+inline float getarg(WxxObjectArray &args, int i)
{ return args.get_number_keyed(i); }
// string types - unfinished
template<>
-std::string getarg(WxxObjectArray &args, int i)
+inline std::string getarg(WxxObjectArray &args, int i)
{ return args.get_string_keyed(i); }
// Raw pointer
template<>
-void * getarg(WxxObjectArray &args, int i)
+inline void * getarg(WxxObjectArray &args, int i)
{ return args[i].get_pointer(); }

0 comments on commit 5f2a450

Please sign in to comment.