home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 15.img / AME2.LIB / APCODE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-17  |  2.7 KB  |  68 lines

  1. /******************************************************************************
  2. Name: apcode.h, AME_HEAD_apcode.h
  3.  
  4. Description: AME2/API status and general data type definitions
  5.  
  6. Author: AME Group
  7.         Autodesk, Inc.
  8.  
  9. (C) Copyright 1988-1992 by Autodesk, Inc.
  10. *******************************************************************************
  11. *                                                                             *
  12. *    This program is copyrighted by Autodesk, Inc. and is  licensed           *
  13. *    to you under the following conditions.  You may not distribute           *
  14. *    or  publish the source code of this program in any form.   You           *
  15. *    may  incorporate this code in object form in derivative  works           *
  16. *    provided  such  derivative  works  are  (i.) are  designed and           *
  17. *    intended  to  work  solely  with  Autodesk, Inc. products, and           *
  18. *    (ii.)  contain  Autodesk's  copyright  notice  "(C)  Copyright           *
  19. *    1988-1992 by Autodesk, Inc."                                             *
  20. *                                                                             *
  21. *    AUTODESK  PROVIDES THIS PROGRAM "AS IS" AND WITH  ALL  FAULTS.           *
  22. *    AUTODESK  SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF  MER-           *
  23. *    CHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK,  INC.           *
  24. *    DOES  NOT  WARRANT THAT THE OPERATION OF THE PROGRAM  WILL  BE           *
  25. *    UNINTERRUPTED OR ERROR FREE.                                             *
  26. *                                                                             *
  27. *******************************************************************************
  28.  
  29. Notes:
  30.  
  31.  
  32. ******************************************************************************/
  33.  
  34. #ifdef FALSE
  35. #undef FALSE
  36. #endif
  37.  
  38. #ifdef TRUE
  39. #undef TRUE
  40. #endif
  41.  
  42. #define FALSE        0
  43. #define TRUE         1
  44.  
  45. #define AP_SINGULARITY       3
  46. #define AP_OUT_BOUND         2
  47. #define AP_NORMAL            1
  48. #define AP_FAIL             -1
  49. #define AP_BAD_INPUT        -2
  50. #define AP_MEM_OUT          -3
  51. #define AP_INVALID_ID       -4
  52. #define AP_OBJTYPE_MISMATCH -5
  53. #define AP_CANCEL           -6
  54. #define AP_LAST_ERRCODE error_code
  55. #define AP_LAST_ERRMSG  errmsg[error_code]
  56.  
  57. typedef int ap_Status;                /* Function Return Status */
  58. typedef unsigned long ap_Objid;       /* Object Identifier */
  59. typedef unsigned long ap_Featid;      /* Feature Identifier */
  60. typedef int ap_Bool;                  /* Boolean Type */
  61. typedef ads_real ap_Real;             /* Real Declaration */
  62. typedef ap_Real ap_Trans3d[4][4];     /* Rigid Motion Matrix */
  63.  
  64. extern long  error_code;
  65. extern char  *errmsg[];
  66.  
  67. /* EOF */
  68.