comparison src/ov-int16.h @ 8321:69b6127f6962

better use of templates in ov-intx.h
author John W. Eaton <jwe@octave.org>
date Thu, 13 Nov 2008 14:13:54 -0500
parents a1dbe9d80eee
children eb63fbe60fab
comparison
equal deleted inserted replaced
8320:9a05d76e5291 8321:69b6127f6962
21 */ 21 */
22 22
23 #if !defined (octave_int16_h) 23 #if !defined (octave_int16_h)
24 #define octave_int16_h 1 24 #define octave_int16_h 1
25 25
26 #define OCTAVE_INT_T octave_int16
27
26 #define OCTAVE_VALUE_INT_MATRIX_T octave_int16_matrix 28 #define OCTAVE_VALUE_INT_MATRIX_T octave_int16_matrix
27 #define OCTAVE_INT_NDARRAY_T int16NDArray
28 #define OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION int16_array_value 29 #define OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION int16_array_value
29 30
30 #define OCTAVE_VALUE_INT_SCALAR_T octave_int16_scalar 31 #define OCTAVE_VALUE_INT_SCALAR_T octave_int16_scalar
31 #define OCTAVE_INT_T octave_int16
32 #define OCTAVE_VALUE_INT_SCALAR_EXTRACTOR_FUNCTION int16_scalar_value 32 #define OCTAVE_VALUE_INT_SCALAR_EXTRACTOR_FUNCTION int16_scalar_value
33 33
34 #define OCTAVE_TYPE_PREDICATE_FUNCTION is_int16_type 34 #define OCTAVE_TYPE_PREDICATE_FUNCTION is_int16_type
35 35
36 #define OCTAVE_INT_MX_CLASS mxINT16_CLASS 36 #define OCTAVE_INT_MX_CLASS mxINT16_CLASS
37 37
38 #include "ov-intx.h" 38 #include "ov-intx.h"
39 39
40 #undef OCTAVE_INT_T
41
40 #undef OCTAVE_VALUE_INT_MATRIX_T 42 #undef OCTAVE_VALUE_INT_MATRIX_T
41 #undef OCTAVE_INT_NDARRAY_T
42 #undef OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION 43 #undef OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION
43 44
44 #undef OCTAVE_VALUE_INT_SCALAR_T 45 #undef OCTAVE_VALUE_INT_SCALAR_T
45 #undef OCTAVE_INT_T
46 #undef OCTAVE_VALUE_INT_SCALAR_EXTRACTOR_FUNCTION 46 #undef OCTAVE_VALUE_INT_SCALAR_EXTRACTOR_FUNCTION
47 47
48 #undef OCTAVE_TYPE_PREDICATE_FUNCTION 48 #undef OCTAVE_TYPE_PREDICATE_FUNCTION
49 49
50 #undef OCTAVE_INT_MX_CLASS 50 #undef OCTAVE_INT_MX_CLASS