XS Constants peculiarity

Chris Jack chris_jack at msn.com
Thu Oct 28 17:26:29 BST 2010


Dirk Koopman djk at tobit.co.uk wrote:
> This is not my stuff, this is generated from the original header file(s).
> 
> Prototypes? Functions??

What kind of a solution are you looking for here and what is your real problem?

Have you tried the suggestion about surrounding your constants in round brackets? Or is this so widespread in your code that it would take too long.

You could also try redefining the constants at the end of the header file (or in a header file of your own) via either of:

use constant RK => 0x4;
use constant RK => (RK);
 
and filter out any redefinition errors if you've got perl warnings on.
 
Chris 		 	   		  


More information about the london.pm mailing list