|
On 12/13/2011 12:45 PM, Drakkor . wrote:
I've decided that intrusive structures (in C++) are the way to go (they can kill themselves on delete). One thing to note is that you can have it treat uint32_t as a lua_Number. Then you won't have as MANY collisions... If you add this to your tolua spec: typedef signed char int8_t; typedef unsigned char uint8_t; typedef short int int16_t; typedef unsigned short int uint16_t; typedef int int32_t; typedef unsigned int uint32_t; ...then it will understand that all of those are really numbers. The code should be faster too. Tim |