Skip to content

Commit

Permalink
fix _S macro
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed Sep 17, 2024
1 parent 1a94715 commit 55c3225
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion transcoder/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@

#include "libs.h"

#define _S(EXP) if ((EXP)<0) { return EXP;}
#define _S(EXP) { \
int retVal = (EXP); \
if(retVal < 0) { \
return retVal; \
} \
}

#ifndef u_char
#define u_char unsigned char
#endif
Expand Down

0 comments on commit 55c3225

Please sign in to comment.