home *** CD-ROM | disk | FTP | other *** search
/ Phoenix Heaven Sunny 2 / APPARE2.BIN / oh_towns / his / source / hisl6.c < prev    next >
C/C++ Source or Header  |  1995-06-20  |  874b  |  26 lines

  1. /***********************************************************************
  2.  *                                                                     *
  3.  *                    ハードウェア割り込み支援ライブラリ               *
  4.  *                                                                     *
  5.  *        1995.6.12                                  by ちょもらんま   *
  6.  *                                                                     *
  7.  ***********************************************************************/
  8.  
  9. #include <hisinner.h>
  10.  
  11. /************************* 割り込み番号チェック ************************/
  12.  
  13. /* 戻り値 : HIS_NoError(正常)  or  HIS_IllegalIntNumber(不正) */
  14.  
  15. int HIS_checkIntNumber( int intnum )
  16. {
  17.     if( ( 0 <= intnum ) && ( intnum < HardwareIntTypes ) )
  18.     {
  19.         return HIS_NoError;
  20.     }
  21.     else
  22.     {
  23.         return HIS_IllegalIntNumber;
  24.     }
  25. }
  26.