Changeset 473 for libmpc/trunk/libmpcdec/internal.h
- Timestamp:
- 07/28/11 21:51:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/internal.h
r436 r473 87 87 * checks if a block key is valid 88 88 * @param key the two caracters key to check 89 * @return MPC_STATUS_ INVALIDSVif the key is invalid, MPC_STATUS_OK else89 * @return MPC_STATUS_FAIL if the key is invalid, MPC_STATUS_OK else 90 90 */ 91 91 static mpc_inline mpc_status mpc_check_key(char * key) 92 92 { 93 93 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90) 94 return MPC_STATUS_ INVALIDSV;94 return MPC_STATUS_FAIL; 95 95 return MPC_STATUS_OK; 96 96 } … … 101 101 void mpc_decoder_synthese_filter_float(mpc_decoder *d, MPC_SAMPLE_FORMAT* OutData, mpc_int_t channels); 102 102 103 #define MPC_IS_FAILURE(X) ((int)(X) < (int)MPC_STATUS_OK) 104 #define MPC_AUTO_FAIL(X) { mpc_status s = (X); if (MPC_IS_FAILURE(s)) return s; } 105 106 103 107 #ifdef __cplusplus 104 108 }
Note: See TracChangeset
for help on using the changeset viewer.