comparison dw.h @ 987:297f2e790e57

Added a DW_RESOURCE() macro for typecasting parameters to HICN and for doing bounds checking. Fixed a typo in the template file while I was fixing comments.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 06:06:19 +0000
parents 87dc0f5f96d0
children cb81c08bd8c3
comparison
equal deleted inserted replaced
986:87dc0f5f96d0 987:297f2e790e57
1399 #define DW_HTML_GOHOME 2 1399 #define DW_HTML_GOHOME 2
1400 #define DW_HTML_SEARCH 3 1400 #define DW_HTML_SEARCH 3
1401 #define DW_HTML_RELOAD 4 1401 #define DW_HTML_RELOAD 4
1402 #define DW_HTML_STOP 5 1402 #define DW_HTML_STOP 5
1403 #define DW_HTML_PRINT 6 1403 #define DW_HTML_PRINT 6
1404
1405 /* Macro for casting resource IDs to HICN */
1406 #define DW_RESOURCE(a) (a < 65536 ? (HICN)a : (HICN)0)
1404 1407
1405 #ifndef API 1408 #ifndef API
1406 #define API 1409 #define API
1407 #endif 1410 #endif
1408 1411