IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 7:45:21 AM (18 years ago)
Author:
eugene
Message:

modify functions to use both int and flt vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/include/dvomath.h

    r20856 r20857  
    99# define opihi_flt double
    1010# define opihi_int unsigned int
     11
     12# define REQUIRE_VECTOR_FLT(VECT,RVAL) { \
     13  if (VECT->type != OPIHI_FLT) { \
     14    gprint (GP_ERR, "function requires vector of type FLT\n"); \
     15    return (RVAL); \
     16  }
     17
     18# define REQUIRE_VECTOR_INT(VECT,RVAL) { \
     19  if (VECT->type != OPIHI_INT) { \
     20    gprint (GP_ERR, "function requires vector of type INT\n"); \
     21    return (RVAL); \
     22  }
    1123
    1224enum {ANYVECTOR, NEWVECTOR, OLDVECTOR};
Note: See TracChangeset for help on using the changeset viewer.