Re: unsigned byte color!

hymedia <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <00c601c99ce2$b60877c0$22196740$@ca>
Ah indeed, way more efficient then re-doing my classes :)

Thank you!

-----Original Message-----
From: Daniel Wallin [mailto:[email protected]] 
Sent: Wednesday, March 04, 2009 3:57 AM
To: [email protected]
Subject: Re: [luabind] unsigned byte color!

hymedia wrote:
> Humm… I m not quite sure what to do with this, I try to add the following into the policy.hpp and recompile Luabind lib:
> 
> LUABIND_NUMBER_CONVERTER(char)
> LUABIND_NUMBER_CONVERTER(signed char)
> -LUABIND_NUMBER_CONVERTER(short)
> +LUABIND_NUMBER_CONVERTER(unsigned char)
> +LUABIND_NUMBER_CONVERTER(signed short)
> LUABIND_NUMBER_CONVERTER(unsigned short)
> -LUABIND_NUMBER_CONVERTER(int)
> +LUABIND_NUMBER_CONVERTER(signed int)
> LUABIND_NUMBER_CONVERTER(unsigned int)
> -LUABIND_NUMBER_CONVERTER(long)
> +LUABIND_NUMBER_CONVERTER(signed long)
> LUABIND_NUMBER_CONVERTER(unsigned long)
> LUABIND_NUMBER_CONVERTER(float)
> LUABIND_NUMBER_CONVERTER(double)
> 
> Wont compile obviously… can you help clear this up?

That's a diff. The lines prefixed with '-' are removed, and the lines
prefixed with '+' are added. The resulting block looks like:

  LUABIND_NUMBER_CONVERTER(char)
  LUABIND_NUMBER_CONVERTER(signed char)
  LUABIND_NUMBER_CONVERTER(unsigned char)
  LUABIND_NUMBER_CONVERTER(signed short)
  LUABIND_NUMBER_CONVERTER(unsigned short)
  LUABIND_NUMBER_CONVERTER(signed int)
  LUABIND_NUMBER_CONVERTER(unsigned int)
  LUABIND_NUMBER_CONVERTER(signed long)
  LUABIND_NUMBER_CONVERTER(unsigned long)
  LUABIND_NUMBER_CONVERTER(float)
  LUABIND_NUMBER_CONVERTER(double)
  LUABIND_NUMBER_CONVERTER(long double)

> Question:
> 
>  
> 
> 1 - Is there a way to make the changes so I wont have to redo the
> changes if another version of luabind comes out, make the changes
> somehow in my project instead?

This was added after 0.8. It will be in 0.8.1 and all subsequent versions.

> 2 – Will this produce overheads for every other functions call via Luabind?

No.

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.