Skip to content
Browse files

long wrap is very bad

  • Loading branch information...
1 parent 58b0226 commit 803694c30b5d68457ef0335bd735e19a8aebdc8f @Hanmac committed May 18, 2012
Showing with 2 additions and 19 deletions.
  1. +0 −12 ext/main.cpp
  2. +0 −5 ext/main.hpp
  3. +2 −2 ext/wxWindow.cpp
View
12 ext/main.cpp
@@ -53,18 +53,6 @@ VALUE wrap< int >(const int &st )
}
template <>
-long int wrap< long int >(const VALUE &val )
-{
- return NUM2LONG(val);
-}
-
-template <>
-VALUE wrap< long int >(const long int &st )
-{
- return LONG2NUM(st);
-}
-
-template <>
unsigned int wrap< unsigned int >(const VALUE &val )
{
return NUM2UINT(val);
View
5 ext/main.hpp
@@ -196,11 +196,6 @@ template <>
VALUE wrap< int >(const int &st );
template <>
-long int wrap< long int >(const VALUE &val );
-template <>
-VALUE wrap< long int >(const long int &st );
-
-template <>
unsigned int wrap< unsigned int >(const VALUE &val );
template <>
VALUE wrap< unsigned int >(const unsigned int &st );
View
4 ext/wxWindow.cpp
@@ -119,8 +119,8 @@ macro_attr(MaxClientSize,wxSize)
macro_attr(Font,wxFont)
macro_attr(Cursor,wxCursor)
-macro_attr(WindowStyleFlag,long)
-macro_attr(ExtraStyle,long)
+macro_attr_with_func(WindowStyleFlag,LONG2NUM,NUM2LONG)
+macro_attr_with_func(ExtraStyle,LONG2NUM,NUM2LONG)
#if wxUSE_VALIDATORS
//macro_attr(Validator,wxValidator)

0 comments on commit 803694c

Please sign in to comment.
Something went wrong with that request. Please try again.