This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cu.import('resource://gre/modules/Services.jsm'); | |
Cu.import('resource://gre/modules/ctypes.jsm'); | |
if (ctypes.voidptr_t.size == 4 /* 32-bit */ ) { | |
var is64bit = false; | |
} else if (ctypes.voidptr_t.size == 8 /* 64-bit */ ) { | |
var is64bit = true; | |
} else { | |
throw new Error('huh??? not 32 or 64 bit?!?!'); | |
} |