jsIf2 function

int jsIf2(
  1. bool a
)

模拟js 三目运算符返回结果

Implementation

int jsIf2(bool a) {
  return a ? 1 : 0;
}