Changeset 5540:2fd95aa93c27 in roaraudio
- Timestamp:
- 06/12/12 15:45:13 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/error.c
r5459 r5540 188 188 } 189 189 190 #define roar_errno2_impl (&roar_errno) 190 191 int * roar_errno2(void) { 191 return &roar_errno;192 return roar_errno2_impl; 192 193 } 193 194 194 195 void roar_err_clear(void) { 195 *roar_errno2 ()= ROAR_ERROR_NONE;196 *roar_errno2_impl = ROAR_ERROR_NONE; 196 197 } 197 198 … … 206 207 207 208 void roar_err_update(void) { 208 int * err = roar_errno2 ();209 int * err = roar_errno2_impl; 209 210 210 211 // NOTE: _NEVER_ call ROAR_{DBG,INFO,WARN,ERR}() in here! (will result in endless loop) … … 223 224 224 225 void roar_err_set(const int error) { 225 *roar_errno2 ()= error;226 *roar_errno2_impl = error; 226 227 } 227 228
Note: See TracChangeset
for help on using the changeset viewer.