diff options
Diffstat (limited to 'Mac/Modules/menu/menusupport.py')
-rw-r--r-- | Mac/Modules/menu/menusupport.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Modules/menu/menusupport.py b/Mac/Modules/menu/menusupport.py index 6424ed9..b706a36 100644 --- a/Mac/Modules/menu/menusupport.py +++ b/Mac/Modules/menu/menusupport.py @@ -24,6 +24,7 @@ from macsupport import * MenuHandle = OpaqueByValueType(OBJECTTYPE, OBJECTPREFIX) MenuRef = MenuHandle +Handle = OpaqueByValueType("Handle", "ResObj") unsigned_char = Type('unsigned char', 'b') @@ -34,6 +35,7 @@ includestuff = includestuff + """ #define resNotFound -192 /* Can't include <Errors.h> because of Python's "errors.h" */ #define as_Menu(h) ((MenuHandle)h) +#define as_Resource(h) ((Handle)h) """ class MyObjectDefinition(GlobalObjectDefinition): |