[JNI] fix JNI binding complie error
This commit is contained in:
@@ -646,9 +646,9 @@ static void YGTransferLayoutDirection(YGNodeRef node, jobject javaNode) {
|
|||||||
|
|
||||||
static YGSize YGJNIMeasureFunc(
|
static YGSize YGJNIMeasureFunc(
|
||||||
YGNodeRef node,
|
YGNodeRef node,
|
||||||
float width,
|
YGFloat width,
|
||||||
YGMeasureMode widthMode,
|
YGMeasureMode widthMode,
|
||||||
float height,
|
YGFloat height,
|
||||||
YGMeasureMode heightMode,
|
YGMeasureMode heightMode,
|
||||||
void* layoutContext) {
|
void* layoutContext) {
|
||||||
if (auto obj = YGNodeJobject(node, layoutContext)) {
|
if (auto obj = YGNodeJobject(node, layoutContext)) {
|
||||||
@@ -694,10 +694,10 @@ static void jni_YGNodeSetHasMeasureFuncJNI(
|
|||||||
->setMeasureFunc(hasMeasureFunc ? YGJNIMeasureFunc : nullptr);
|
->setMeasureFunc(hasMeasureFunc ? YGJNIMeasureFunc : nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static float YGJNIBaselineFunc(
|
static YGFloat YGJNIBaselineFunc(
|
||||||
YGNodeRef node,
|
YGNodeRef node,
|
||||||
float width,
|
YGFloat width,
|
||||||
float height,
|
YGFloat height,
|
||||||
void* layoutContext) {
|
void* layoutContext) {
|
||||||
if (auto obj = YGNodeJobject(node, layoutContext)) {
|
if (auto obj = YGNodeJobject(node, layoutContext)) {
|
||||||
JNIEnv* env = getCurrentEnv();
|
JNIEnv* env = getCurrentEnv();
|
||||||
|
Reference in New Issue
Block a user