• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ NullCheck函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中NullCheck函数的典型用法代码示例。如果您正苦于以下问题:C++ NullCheck函数的具体用法?C++ NullCheck怎么用?C++ NullCheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了NullCheck函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: Player_Move_m551

extern "C" void Player_Move_m551 (Player_t139 * __this, float ___h, float ___v, const MethodInfo* method)
{
    static bool s_Il2CppMethodIntialized;
    if (!s_Il2CppMethodIntialized)
    {
        Input_t106_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(8);
        _stringLiteral9 = il2cpp_codegen_string_literal_from_index(9);
        s_Il2CppMethodIntialized = true;
    }
    {
        Transform_t3 * L_0 = Component_get_transform_m325(__this, /*hidden argument*/NULL);
        NullCheck(L_0);
        Vector3_t8  L_1 = Transform_get_forward_m363(L_0, /*hidden argument*/NULL);
        IL2CPP_RUNTIME_CLASS_INIT(Input_t106_il2cpp_TypeInfo_var);
        float L_2 = Input_GetAxis_m389(NULL /*static, unused*/, _stringLiteral9, /*hidden argument*/NULL);
        Vector3_t8  L_3 = Vector3_op_Multiply_m334(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
        float L_4 = (__this->___speed_2);
        Vector3_t8  L_5 = Vector3_op_Multiply_m334(NULL /*static, unused*/, L_3, L_4, /*hidden argument*/NULL);
        __this->___moveDirection_10 = L_5;
        CharacterController_t140 * L_6 = (__this->___controller_6);
        Vector3_t8  L_7 = (__this->___moveDirection_10);
        float L_8 = Time_get_deltaTime_m338(NULL /*static, unused*/, /*hidden argument*/NULL);
        Vector3_t8  L_9 = Vector3_op_Multiply_m334(NULL /*static, unused*/, L_7, L_8, /*hidden argument*/NULL);
        NullCheck(L_6);
        CharacterController_Move_m559(L_6, L_9, /*hidden argument*/NULL);
        Vector3_t8 * L_10 = &(__this->___moveDirection_10);
        Vector3_t8 * L_11 = L_10;
        float L_12 = (L_11->___y_2);
        float L_13 = (__this->___gravity_11);
        float L_14 = Time_get_deltaTime_m338(NULL /*static, unused*/, /*hidden argument*/NULL);
        L_11->___y_2 = ((float)((float)L_12-(float)((float)((float)L_13*(float)L_14))));
        return;
    }
}
开发者ID:joshtwynham,项目名称:dissertation,代码行数:34,代码来源:Bulk_Assembly-CSharp_0.cpp


示例2: Array_Coerce_m1091438833

// System.Object UnityScript.Lang.Array::Coerce(System.Type)
extern "C"  Il2CppObject * Array_Coerce_m1091438833 (Array_t1209885965 * __this, Type_t * ___toType, const MethodInfo* method)
{
	Il2CppArray * G_B3_0 = NULL;
	{
		Type_t * L_0 = ___toType;
		NullCheck(L_0);
		bool L_1 = VirtFuncInvoker0< bool >::Invoke(21 /* System.Boolean System.Type::get_IsArray() */, L_0);
		if (!L_1)
		{
			goto IL_001c;
		}
	}
	{
		Type_t * L_2 = ___toType;
		NullCheck(L_2);
		Type_t * L_3 = VirtFuncInvoker0< Type_t * >::Invoke(42 /* System.Type System.Type::GetElementType() */, L_2);
		Il2CppArray * L_4 = Array_ToBuiltin_m1955277466(__this, L_3, /*hidden argument*/NULL);
		G_B3_0 = L_4;
		goto IL_001d;
	}

IL_001c:
	{
		G_B3_0 = ((Il2CppArray *)(__this));
	}

IL_001d:
	{
		return G_B3_0;
	}
}
开发者ID:cagosta,项目名称:SoundSpaceiOS,代码行数:32,代码来源:Bulk_UnityScript.Lang_0.cpp


示例3: CameraFollow_Start_m543

// System.Void CameraFollow::Start()
extern "C" void CameraFollow_Start_m543 (CameraFollow_t137 * __this, const MethodInfo* method)
{
    Vector3_t8  V_0 = {0};
    Vector3_t8  V_1 = {0};
    Vector3_t8  V_2 = {0};
    {
        Transform_t3 * L_0 = (__this->___target_2);
        NullCheck(L_0);
        Vector3_t8  L_1 = Transform_get_position_m313(L_0, /*hidden argument*/NULL);
        V_0 = L_1;
        float L_2 = ((&V_0)->___x_1);
        Transform_t3 * L_3 = (__this->___target_2);
        NullCheck(L_3);
        Vector3_t8  L_4 = Transform_get_position_m313(L_3, /*hidden argument*/NULL);
        V_1 = L_4;
        float L_5 = ((&V_1)->___y_2);
        Transform_t3 * L_6 = (__this->___target_2);
        NullCheck(L_6);
        Vector3_t8  L_7 = Transform_get_position_m313(L_6, /*hidden argument*/NULL);
        V_2 = L_7;
        float L_8 = ((&V_2)->___z_3);
        Vector3_t8  L_9 = {0};
        Vector3__ctor_m351(&L_9, ((float)((float)L_2+(float)(40.0f))), ((float)((float)L_5+(float)(25.0f))), ((float)((float)L_8+(float)(25.0f))), /*hidden argument*/NULL);
        __this->___offset_4 = L_9;
        return;
    }
}
开发者ID:joshtwynham,项目名称:dissertation,代码行数:28,代码来源:Bulk_Assembly-CSharp_0.cpp


示例4: PlayerController_setCountText_m2023731392

extern "C"  void PlayerController_setCountText_m2023731392 (PlayerController_t2866526589 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (PlayerController_setCountText_m2023731392_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	{
		Text_t3286458198 * L_0 = (__this->___countText_5);
		int32_t* L_1 = &(__this->___count_3);
		String_t* L_2 = Int32_ToString_m1286526384(L_1, /*hidden argument*/NULL);
		IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
		String_t* L_3 = String_Concat_m138640077(NULL /*static, unused*/, _stringLiteral2622482517, L_2, /*hidden argument*/NULL);
		NullCheck(L_0);
		VirtActionInvoker1< String_t* >::Invoke(65 /* System.Void UnityEngine.UI.Text::set_text(System.String) */, L_0, L_3);
		int32_t L_4 = (__this->___count_3);
		if ((((int32_t)L_4) < ((int32_t)5)))
		{
			goto IL_003c;
		}
	}
	{
		Text_t3286458198 * L_5 = (__this->___winText_6);
		NullCheck(L_5);
		VirtActionInvoker1< String_t* >::Invoke(65 /* System.Void UnityEngine.UI.Text::set_text(System.String) */, L_5, _stringLiteral670376987);
	}

IL_003c:
	{
		return;
	}
}
开发者ID:joncodo,项目名称:RollABall,代码行数:33,代码来源:Bulk_Assembly-CSharp_0.cpp


示例5: PlayerController_OnTriggerEnter_m3392021114

extern "C"  void PlayerController_OnTriggerEnter_m3392021114 (PlayerController_t2866526589 * __this, Collider_t955670625 * ___other, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (PlayerController_OnTriggerEnter_m3392021114_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	{
		Collider_t955670625 * L_0 = ___other;
		NullCheck(L_0);
		GameObject_t4012695102 * L_1 = Component_get_gameObject_m1170635899(L_0, /*hidden argument*/NULL);
		NullCheck(L_1);
		bool L_2 = GameObject_CompareTag_m3153977471(L_1, _stringLiteral2390357660, /*hidden argument*/NULL);
		if (!L_2)
		{
			goto IL_0035;
		}
	}
	{
		Collider_t955670625 * L_3 = ___other;
		NullCheck(L_3);
		GameObject_t4012695102 * L_4 = Component_get_gameObject_m1170635899(L_3, /*hidden argument*/NULL);
		NullCheck(L_4);
		GameObject_SetActive_m3538205401(L_4, (bool)0, /*hidden argument*/NULL);
		int32_t L_5 = (__this->___count_3);
		__this->___count_3 = ((int32_t)((int32_t)L_5+(int32_t)1));
		PlayerController_setCountText_m2023731392(__this, /*hidden argument*/NULL);
	}

IL_0035:
	{
		return;
	}
}
开发者ID:joncodo,项目名称:RollABall,代码行数:35,代码来源:Bulk_Assembly-CSharp_0.cpp


示例6: Move_Update_m4

extern "C" void Move_Update_m4 (Move_t4 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		Input_t5_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(1);
		_stringLiteral0 = il2cpp_codegen_string_literal_from_index(0);
		_stringLiteral1 = il2cpp_codegen_string_literal_from_index(1);
		s_Il2CppMethodIntialized = true;
	}
	{
		Transform_t1 * L_0 = Component_get_transform_m8(__this, /*hidden argument*/NULL);
		Transform_t1 * L_1 = L_0;
		NullCheck(L_1);
		Vector3_t6  L_2 = Transform_get_position_m7(L_1, /*hidden argument*/NULL);
		IL2CPP_RUNTIME_CLASS_INIT(Input_t5_il2cpp_TypeInfo_var);
		float L_3 = Input_GetAxis_m15(NULL /*static, unused*/, _stringLiteral0, /*hidden argument*/NULL);
		float L_4 = Time_get_deltaTime_m16(NULL /*static, unused*/, /*hidden argument*/NULL);
		float L_5 = (__this->___speed_2);
		float L_6 = Input_GetAxis_m15(NULL /*static, unused*/, _stringLiteral1, /*hidden argument*/NULL);
		float L_7 = Time_get_deltaTime_m16(NULL /*static, unused*/, /*hidden argument*/NULL);
		float L_8 = (__this->___speed_2);
		Vector3_t6  L_9 = {0};
		Vector3__ctor_m9(&L_9, ((float)((float)((float)((float)L_3*(float)L_4))*(float)L_5)), (0.0f), ((float)((float)((float)((float)L_6*(float)L_7))*(float)L_8)), /*hidden argument*/NULL);
		Vector3_t6  L_10 = Vector3_op_Addition_m17(NULL /*static, unused*/, L_2, L_9, /*hidden argument*/NULL);
		NullCheck(L_1);
		Transform_set_position_m18(L_1, L_10, /*hidden argument*/NULL);
		return;
	}
}
开发者ID:Marcurion,项目名称:test2,代码行数:30,代码来源:Bulk_Assembly-CSharp_0.cpp


示例7: BenchmarkTest_pixelToWorld_m4143337598

extern "C"  float BenchmarkTest_pixelToWorld_m4143337598 (BenchmarkTest_t1141318415 * __this, float ___pixel0, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (BenchmarkTest_pixelToWorld_m4143337598_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	Camera_t3533968274 * V_0 = NULL;
	float V_1 = 0.0f;
	float V_2 = 0.0f;
	{
		Camera_t3533968274 * L_0 = Camera_get_main_m671815697(NULL /*static, unused*/, /*hidden argument*/NULL);
		NullCheck(L_0);
		Camera_t3533968274 * L_1 = Component_GetComponent_TisCamera_t3533968274_m1005433449(L_0, /*hidden argument*/Component_GetComponent_TisCamera_t3533968274_m1005433449_MethodInfo_var);
		V_0 = L_1;
		Camera_t3533968274 * L_2 = V_0;
		NullCheck(L_2);
		float L_3 = Camera_get_orthographicSize_m3215515490(L_2, /*hidden argument*/NULL);
		V_1 = L_3;
		float L_4 = V_1;
		Camera_t3533968274 * L_5 = V_0;
		NullCheck(L_5);
		int32_t L_6 = Camera_get_pixelHeight_m1661844426(L_5, /*hidden argument*/NULL);
		V_2 = ((float)((float)((float)((float)L_4*(float)(2.0f)))/(float)(((float)((float)L_6)))));
		float L_7 = V_2;
		float L_8 = ___pixel0;
		return ((float)((float)L_7*(float)L_8));
	}
}
开发者ID:eray-z,项目名称:Game-Engine-Benchmarks,代码行数:30,代码来源:Bulk_Assembly-CSharp_0.cpp


示例8: DEBUG_Str

void DEBUG_Str (char *msg, char *var)
{
	if (CONF_DEBUG)
	{
		printf("%s '%s'\n", NullCheck(msg), NullCheck(var) );
		fflush(stdout);
	}
}
开发者ID:ombt,项目名称:ombt,代码行数:8,代码来源:debug.c


示例9: AnimationSpriteSheet_Update_m8_4

extern "C" void AnimationSpriteSheet_Update_m8_4 (AnimationSpriteSheet_t8_2 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		Component_GetComponent_TisRenderer_t5_33_m5_2183_MethodInfo_var = il2cpp_codegen_method_info_from_index(2147483920);
		_stringLiteral4504 = il2cpp_codegen_string_literal_from_index(4504);
		s_Il2CppMethodIntialized = true;
	}
	int32_t V_0 = 0;
	Vector2_t5_67  V_1 = {0};
	int32_t V_2 = 0;
	int32_t V_3 = 0;
	Vector2_t5_67  V_4 = {0};
	{
		float L_0 = Time_get_time_m5_1179(NULL /*static, unused*/, /*hidden argument*/NULL);
		float L_1 = (__this->___fps_4);
		V_0 = (((int32_t)((int32_t)((float)((float)L_0*(float)L_1)))));
		int32_t L_2 = V_0;
		int32_t L_3 = (__this->___uvX_2);
		int32_t L_4 = (__this->___uvY_3);
		V_0 = ((int32_t)((int32_t)L_2%(int32_t)((int32_t)((int32_t)L_3*(int32_t)L_4))));
		int32_t L_5 = (__this->___uvX_2);
		int32_t L_6 = (__this->___uvY_3);
		Vector2_t5_67  L_7 = {0};
		Vector2__ctor_m5_394(&L_7, ((float)((float)(1.0f)/(float)(((float)((float)L_5))))), ((float)((float)(1.0f)/(float)(((float)((float)L_6))))), /*hidden argument*/NULL);
		V_1 = L_7;
		int32_t L_8 = V_0;
		int32_t L_9 = (__this->___uvX_2);
		V_2 = ((int32_t)((int32_t)L_8%(int32_t)L_9));
		int32_t L_10 = V_0;
		int32_t L_11 = (__this->___uvX_2);
		V_3 = ((int32_t)((int32_t)L_10/(int32_t)L_11));
		int32_t L_12 = V_2;
		float L_13 = ((&V_1)->___x_1);
		float L_14 = ((&V_1)->___y_2);
		int32_t L_15 = V_3;
		float L_16 = ((&V_1)->___y_2);
		Vector2_t5_67  L_17 = {0};
		Vector2__ctor_m5_394(&L_17, ((float)((float)(((float)((float)L_12)))*(float)L_13)), ((float)((float)((float)((float)(1.0f)-(float)L_14))-(float)((float)((float)(((float)((float)L_15)))*(float)L_16)))), /*hidden argument*/NULL);
		V_4 = L_17;
		Renderer_t5_33 * L_18 = Component_GetComponent_TisRenderer_t5_33_m5_2183(__this, /*hidden argument*/Component_GetComponent_TisRenderer_t5_33_m5_2183_MethodInfo_var);
		NullCheck(L_18);
		Material_t5_40 * L_19 = Renderer_get_material_m5_174(L_18, /*hidden argument*/NULL);
		Vector2_t5_67  L_20 = V_4;
		NullCheck(L_19);
		Material_SetTextureOffset_m5_770(L_19, _stringLiteral4504, L_20, /*hidden argument*/NULL);
		Renderer_t5_33 * L_21 = Component_GetComponent_TisRenderer_t5_33_m5_2183(__this, /*hidden argument*/Component_GetComponent_TisRenderer_t5_33_m5_2183_MethodInfo_var);
		NullCheck(L_21);
		Material_t5_40 * L_22 = Renderer_get_material_m5_174(L_21, /*hidden argument*/NULL);
		Vector2_t5_67  L_23 = V_1;
		NullCheck(L_22);
		Material_SetTextureScale_m5_772(L_22, _stringLiteral4504, L_23, /*hidden argument*/NULL);
		return;
	}
}
开发者ID:anthonymirand,项目名称:Battles-of-Ironforge,代码行数:56,代码来源:Bulk_Assembly-UnityScript_0.cpp


示例10: BenchmarkTest_OnGUI_m2000987190

extern "C"  void BenchmarkTest_OnGUI_m2000987190 (BenchmarkTest_t1141318415 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (BenchmarkTest_OnGUI_m2000987190_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	int32_t V_0 = 0;
	int32_t V_1 = 0;
	GUIStyle_t1006925219 * V_2 = NULL;
	Rect_t1525428817  V_3;
	memset(&V_3, 0, sizeof(V_3));
	String_t* V_4 = NULL;
	{
		int32_t L_0 = Screen_get_width_m3080333084(NULL /*static, unused*/, /*hidden argument*/NULL);
		V_0 = L_0;
		int32_t L_1 = Screen_get_height_m1504859443(NULL /*static, unused*/, /*hidden argument*/NULL);
		V_1 = L_1;
		GUIStyle_t1006925219 * L_2 = (GUIStyle_t1006925219 *)il2cpp_codegen_object_new(GUIStyle_t1006925219_il2cpp_TypeInfo_var);
		GUIStyle__ctor_m478034167(L_2, /*hidden argument*/NULL);
		V_2 = L_2;
		int32_t L_3 = V_0;
		int32_t L_4 = V_1;
		Rect__ctor_m3291325233((&V_3), (0.0f), (0.0f), (((float)((float)L_3))), (((float)((float)((int32_t)((int32_t)((int32_t)((int32_t)L_4*(int32_t)2))/(int32_t)((int32_t)50)))))), /*hidden argument*/NULL);
		GUIStyle_t1006925219 * L_5 = V_2;
		NullCheck(L_5);
		GUIStyle_set_alignment_m4252900834(L_5, 8, /*hidden argument*/NULL);
		GUIStyle_t1006925219 * L_6 = V_2;
		int32_t L_7 = V_1;
		NullCheck(L_6);
		GUIStyle_set_fontSize_m3621764235(L_6, ((int32_t)((int32_t)((int32_t)((int32_t)L_7*(int32_t)2))/(int32_t)((int32_t)50))), /*hidden argument*/NULL);
		GUIStyle_t1006925219 * L_8 = V_2;
		NullCheck(L_8);
		GUIStyleState_t47287592 * L_9 = GUIStyle_get_normal_m42729964(L_8, /*hidden argument*/NULL);
		Color_t1588175760  L_10;
		memset(&L_10, 0, sizeof(L_10));
		Color__ctor_m2252924356(&L_10, (1.0f), (1.0f), (1.0f), (1.0f), /*hidden argument*/NULL);
		NullCheck(L_9);
		GUIStyleState_set_textColor_m3058467057(L_9, L_10, /*hidden argument*/NULL);
		List_1_t3871517354 * L_11 = __this->get_allOfBunnyObjects_2();
		NullCheck(L_11);
		int32_t L_12 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<BunnyObj>::get_Count() */, L_11);
		int32_t L_13 = L_12;
		Il2CppObject * L_14 = Box(Int32_t2847414787_il2cpp_TypeInfo_var, &L_13);
		IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
		String_t* L_15 = String_Format_m2471250780(NULL /*static, unused*/, _stringLiteral2608961897, L_14, /*hidden argument*/NULL);
		V_4 = L_15;
		Rect_t1525428817  L_16 = V_3;
		String_t* L_17 = V_4;
		GUIStyle_t1006925219 * L_18 = V_2;
		IL2CPP_RUNTIME_CLASS_INIT(GUI_t1522956648_il2cpp_TypeInfo_var);
		GUI_Label_m4283747336(NULL /*static, unused*/, L_16, L_17, L_18, /*hidden argument*/NULL);
		return;
	}
}
开发者ID:eray-z,项目名称:Game-Engine-Benchmarks,代码行数:56,代码来源:Bulk_Assembly-CSharp_0.cpp


示例11: NewPlayerMovement_Update_m547

// System.Void NewPlayerMovement::Update()
extern "C" void NewPlayerMovement_Update_m547 (NewPlayerMovement_t138 * __this, const MethodInfo* method)
{
    {
        NavMeshAgent_t4 * L_0 = (__this->___nav_3);
        Transform_t3 * L_1 = (__this->___player_2);
        NullCheck(L_1);
        Vector3_t8  L_2 = Transform_get_position_m313(L_1, /*hidden argument*/NULL);
        NullCheck(L_0);
        NavMeshAgent_SetDestination_m314(L_0, L_2, /*hidden argument*/NULL);
        return;
    }
}
开发者ID:joshtwynham,项目名称:dissertation,代码行数:13,代码来源:Bulk_Assembly-CSharp_0.cpp


示例12: EqualityComparer_1__cctor_m27412_gshared

extern "C" void EqualityComparer_1__cctor_m27412_gshared (Object_t * __this /* static, unused */, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		GenericEqualityComparer_1_t3564_0_0_0_var = il2cpp_codegen_type_from_index(3752);
		Type_t_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(44);
		TypeU5BU5D_t720_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(428);
		s_Il2CppMethodIntialized = true;
	}
	{
		IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
		Type_t * L_0 = Type_GetTypeFromHandle_m333(NULL /*static, unused*/, (RuntimeTypeHandle_t1602 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 0)), /*hidden argument*/NULL);
		Type_t * L_1 = Type_GetTypeFromHandle_m333(NULL /*static, unused*/, (RuntimeTypeHandle_t1602 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL);
		NullCheck((Type_t *)L_0);
		bool L_2 = (bool)VirtFuncInvoker1< bool, Type_t * >::Invoke(40 /* System.Boolean System.Type::IsAssignableFrom(System.Type) */, (Type_t *)L_0, (Type_t *)L_1);
		if (!L_2)
		{
			goto IL_0054;
		}
	}
	{
		IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
		Type_t * L_3 = Type_GetTypeFromHandle_m333(NULL /*static, unused*/, (RuntimeTypeHandle_t1602 )LoadTypeToken(GenericEqualityComparer_1_t3564_0_0_0_var), /*hidden argument*/NULL);
		TypeU5BU5D_t720* L_4 = (TypeU5BU5D_t720*)((TypeU5BU5D_t720*)SZArrayNew(TypeU5BU5D_t720_il2cpp_TypeInfo_var, 1));
		Type_t * L_5 = Type_GetTypeFromHandle_m333(NULL /*static, unused*/, (RuntimeTypeHandle_t1602 )LoadTypeToken(IL2CPP_RGCTX_TYPE(InitializedTypeInfo(method->declaring_type)->rgctx_data, 1)), /*hidden argument*/NULL);
		NullCheck(L_4);
		IL2CPP_ARRAY_BOUNDS_CHECK(L_4, 0);
		ArrayElementTypeCheck (L_4, L_5);
		*((Type_t **)(Type_t **)SZArrayLdElema(L_4, 0, sizeof(Type_t *))) = (Type_t *)L_5;
		NullCheck((Type_t *)L_3);
		Type_t * L_6 = (Type_t *)VirtFuncInvoker1< Type_t *, TypeU5BU5D_t720* >::Invoke(78 /* System.Type System.Type::MakeGenericType(System.Type[]) */, (Type_t *)L_3, (TypeU5BU5D_t720*)L_4);
		Object_t * L_7 = Activator_CreateInstance_m13379(NULL /*static, unused*/, (Type_t *)L_6, /*hidden argument*/NULL);
		((EqualityComparer_1_t3285_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = ((EqualityComparer_1_t3285 *)Castclass(L_7, IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 2)));
		goto IL_005e;
	}

IL_0054:
	{
		DefaultComparer_t3286 * L_8 = (DefaultComparer_t3286 *)il2cpp_codegen_object_new (IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 4));
		(( void (*) (DefaultComparer_t3286 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5)->method)(L_8, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(InitializedTypeInfo(method->declaring_type)->rgctx_data, 5));
		((EqualityComparer_1_t3285_StaticFields*)IL2CPP_RGCTX_DATA(InitializedTypeInfo(method->declaring_type)->rgctx_data, 3)->static_fields)->____default_0 = L_8;
	}

IL_005e:
	{
		return;
	}
}
开发者ID:AndreaMelle,项目名称:UnityNativeIntegrationScoping,代码行数:49,代码来源:Bulk_Generics_9.cpp


示例13: DefaultValueAttribute_Equals_m1173

extern "C" bool DefaultValueAttribute_Equals_m1173 (DefaultValueAttribute_t273 * __this, Object_t * ___obj, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		DefaultValueAttribute_t273_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(228);
		s_Il2CppMethodIntialized = true;
	}
	DefaultValueAttribute_t273 * V_0 = {0};
	{
		Object_t * L_0 = ___obj;
		V_0 = ((DefaultValueAttribute_t273 *)IsInst(L_0, DefaultValueAttribute_t273_il2cpp_TypeInfo_var));
		DefaultValueAttribute_t273 * L_1 = V_0;
		if (L_1)
		{
			goto IL_000f;
		}
	}
	{
		return 0;
	}

IL_000f:
	{
		Object_t * L_2 = (__this->___DefaultValue_0);
		if (L_2)
		{
			goto IL_0024;
		}
	}
	{
		DefaultValueAttribute_t273 * L_3 = V_0;
		NullCheck(L_3);
		Object_t * L_4 = DefaultValueAttribute_get_Value_m1172(L_3, /*hidden argument*/NULL);
		return ((((Object_t*)(Object_t *)L_4) == ((Object_t*)(Object_t *)NULL))? 1 : 0);
	}

IL_0024:
	{
		Object_t * L_5 = (__this->___DefaultValue_0);
		DefaultValueAttribute_t273 * L_6 = V_0;
		NullCheck(L_6);
		Object_t * L_7 = DefaultValueAttribute_get_Value_m1172(L_6, /*hidden argument*/NULL);
		NullCheck(L_5);
		bool L_8 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, L_5, L_7);
		return L_8;
	}
}
开发者ID:apollow,项目名称:SimpleUnityAppForSwift,代码行数:48,代码来源:Bulk_UnityEngine_2.cpp


示例14: MakeAnything

 inline std::u16string MakeAnything(ThingToMake<std::u16string>, JNIEnv& env, const String& string)
    {
     NullCheck(env, string.get());
     std::u16string result(jni::GetStringLength(env, *string), char16_t());
     jni::GetStringRegion(env, *string, 0, result);
     return result;
    }
开发者ID:mapbox,项目名称:jni.hpp,代码行数:7,代码来源:string.hpp


示例15: CameraController_Start_m253045754

// System.Void CameraController::Start()
extern "C"  void CameraController_Start_m253045754 (CameraController_t3473169601 * __this, const MethodInfo* method)
{
	{
		Transform_t284553113 * L_0 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		NullCheck(L_0);
		Vector3_t3525329789  L_1 = Transform_get_position_m2211398607(L_0, /*hidden argument*/NULL);
		GameObject_t4012695102 * L_2 = (__this->___player_2);
		NullCheck(L_2);
		Transform_t284553113 * L_3 = GameObject_get_transform_m1278640159(L_2, /*hidden argument*/NULL);
		NullCheck(L_3);
		Vector3_t3525329789  L_4 = Transform_get_position_m2211398607(L_3, /*hidden argument*/NULL);
		Vector3_t3525329789  L_5 = Vector3_op_Subtraction_m2842958165(NULL /*static, unused*/, L_1, L_4, /*hidden argument*/NULL);
		__this->___offset_3 = L_5;
		return;
	}
}
开发者ID:joncodo,项目名称:RollABall,代码行数:17,代码来源:Bulk_Assembly-CSharp_0.cpp


示例16: UnityEventBase__ctor_m1161

extern "C" void UnityEventBase__ctor_m1161 (UnityEventBase_t270 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		InvokableCallList_t269_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(226);
		PersistentCallGroup_t267_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(227);
		s_Il2CppMethodIntialized = true;
	}
	{
		__this->___m_CallsDirty_3 = 1;
		Object__ctor_m1185(__this, /*hidden argument*/NULL);
		InvokableCallList_t269 * L_0 = (InvokableCallList_t269 *)il2cpp_codegen_object_new (InvokableCallList_t269_il2cpp_TypeInfo_var);
		InvokableCallList__ctor_m1159(L_0, /*hidden argument*/NULL);
		__this->___m_Calls_0 = L_0;
		PersistentCallGroup_t267 * L_1 = (PersistentCallGroup_t267 *)il2cpp_codegen_object_new (PersistentCallGroup_t267_il2cpp_TypeInfo_var);
		PersistentCallGroup__ctor_m1158(L_1, /*hidden argument*/NULL);
		__this->___m_PersistentCalls_1 = L_1;
		Type_t * L_2 = Object_GetType_m1206(__this, /*hidden argument*/NULL);
		NullCheck(L_2);
		String_t* L_3 = (String_t*)VirtFuncInvoker0< String_t* >::Invoke(15 /* System.String System.Type::get_AssemblyQualifiedName() */, L_2);
		__this->___m_TypeName_2 = L_3;
		return;
	}
}
开发者ID:apollow,项目名称:SimpleUnityAppForSwift,代码行数:25,代码来源:Bulk_UnityEngine_2.cpp


示例17: Player_Awake_m549

extern "C" void Player_Awake_m549 (Player_t139 * __this, const MethodInfo* method)
{
    static bool s_Il2CppMethodIntialized;
    if (!s_Il2CppMethodIntialized)
    {
        StringU5BU5D_t126_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(39);
        Component_GetComponent_TisAnimator_t7_m317_MethodInfo_var = il2cpp_codegen_method_info_from_index(2147483651);
        Component_GetComponent_TisRigidbody_t6_m318_MethodInfo_var = il2cpp_codegen_method_info_from_index(2147483652);
        Component_GetComponent_TisCharacterController_t140_m558_MethodInfo_var = il2cpp_codegen_method_info_from_index(2147483674);
        _stringLiteral40 = il2cpp_codegen_string_literal_from_index(40);
        s_Il2CppMethodIntialized = true;
    }
    {
        StringU5BU5D_t126* L_0 = ((StringU5BU5D_t126*)SZArrayNew(StringU5BU5D_t126_il2cpp_TypeInfo_var, 1));
        NullCheck(L_0);
        IL2CPP_ARRAY_BOUNDS_CHECK(L_0, 0);
        ArrayElementTypeCheck (L_0, _stringLiteral40);
        *((String_t**)(String_t**)SZArrayLdElema(L_0, 0, sizeof(String_t*))) = (String_t*)_stringLiteral40;
        int32_t L_1 = LayerMask_GetMask_m557(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
        __this->___floorMask_7 = L_1;
        Animator_t7 * L_2 = Component_GetComponent_TisAnimator_t7_m317(__this, /*hidden argument*/Component_GetComponent_TisAnimator_t7_m317_MethodInfo_var);
        __this->___anim_4 = L_2;
        Rigidbody_t6 * L_3 = Component_GetComponent_TisRigidbody_t6_m318(__this, /*hidden argument*/Component_GetComponent_TisRigidbody_t6_m318_MethodInfo_var);
        __this->___playerRigidbody_5 = L_3;
        CharacterController_t140 * L_4 = Component_GetComponent_TisCharacterController_t140_m558(__this, /*hidden argument*/Component_GetComponent_TisCharacterController_t140_m558_MethodInfo_var);
        __this->___controller_6 = L_4;
        return;
    }
}
开发者ID:joshtwynham,项目名称:dissertation,代码行数:29,代码来源:Bulk_Assembly-CSharp_0.cpp


示例18: TextGenerationSettings_CompareColors_m1147

extern "C" bool TextGenerationSettings_CompareColors_m1147 (TextGenerationSettings_t162 * __this, Color_t7  ___left, Color_t7  ___right, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		Color32_t91_il2cpp_TypeInfo_var = il2cpp_codegen_type_info_from_index(218);
		s_Il2CppMethodIntialized = true;
	}
	Color32_t91  V_0 = {0};
	Color32_t91  V_1 = {0};
	{
		Color_t7  L_0 = ___left;
		Color32_t91  L_1 = Color32_op_Implicit_m377(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
		V_0 = L_1;
		Color_t7  L_2 = ___right;
		Color32_t91  L_3 = Color32_op_Implicit_m377(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
		V_1 = L_3;
		Color32_t91  L_4 = V_0;
		Color32_t91  L_5 = L_4;
		Object_t * L_6 = Box(Color32_t91_il2cpp_TypeInfo_var, &L_5);
		Color32_t91  L_7 = V_1;
		Color32_t91  L_8 = L_7;
		Object_t * L_9 = Box(Color32_t91_il2cpp_TypeInfo_var, &L_8);
		NullCheck(L_6);
		bool L_10 = (bool)VirtFuncInvoker1< bool, Object_t * >::Invoke(0 /* System.Boolean System.ValueType::Equals(System.Object) */, L_6, L_9);
		return L_10;
	}
}
开发者ID:apollow,项目名称:SimpleUnityAppForSwift,代码行数:28,代码来源:Bulk_UnityEngine_2.cpp


示例19: BenchmarkTest_getScreenSize_m1573587288

extern "C"  Vector2_t3525329788  BenchmarkTest_getScreenSize_m1573587288 (BenchmarkTest_t1141318415 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (BenchmarkTest_getScreenSize_m1573587288_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	Camera_t3533968274 * V_0 = NULL;
	float V_1 = 0.0f;
	float V_2 = 0.0f;
	{
		Camera_t3533968274 * L_0 = Camera_get_main_m671815697(NULL /*static, unused*/, /*hidden argument*/NULL);
		NullCheck(L_0);
		Camera_t3533968274 * L_1 = Component_GetComponent_TisCamera_t3533968274_m1005433449(L_0, /*hidden argument*/Component_GetComponent_TisCamera_t3533968274_m1005433449_MethodInfo_var);
		V_0 = L_1;
		int32_t L_2 = Screen_get_width_m3080333084(NULL /*static, unused*/, /*hidden argument*/NULL);
		float L_3 = BenchmarkTest_pixelToWorld_m4143337598(__this, (((float)((float)L_2))), /*hidden argument*/NULL);
		V_1 = L_3;
		int32_t L_4 = Screen_get_height_m1504859443(NULL /*static, unused*/, /*hidden argument*/NULL);
		float L_5 = BenchmarkTest_pixelToWorld_m4143337598(__this, (((float)((float)L_4))), /*hidden argument*/NULL);
		V_2 = L_5;
		float L_6 = V_1;
		float L_7 = V_2;
		Vector2_t3525329788  L_8;
		memset(&L_8, 0, sizeof(L_8));
		Vector2__ctor_m1517109030(&L_8, L_6, L_7, /*hidden argument*/NULL);
		return L_8;
	}
}
开发者ID:eray-z,项目名称:Game-Engine-Benchmarks,代码行数:30,代码来源:Bulk_Assembly-CSharp_0.cpp


示例20: PlayerController_FixedUpdate_m270852281

extern "C"  void PlayerController_FixedUpdate_m270852281 (PlayerController_t2866526589 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (PlayerController_FixedUpdate_m270852281_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	float V_0 = 0.0f;
	float V_1 = 0.0f;
	Vector3_t3525329789  V_2 = {0};
	{
		IL2CPP_RUNTIME_CLASS_INIT(Input_t1593691127_il2cpp_TypeInfo_var);
		float L_0 = Input_GetAxis_m2027668530(NULL /*static, unused*/, _stringLiteral3381094468, /*hidden argument*/NULL);
		V_0 = L_0;
		float L_1 = Input_GetAxis_m2027668530(NULL /*static, unused*/, _stringLiteral2375469974, /*hidden argument*/NULL);
		V_1 = L_1;
		float L_2 = V_0;
		float L_3 = V_1;
		Vector3__ctor_m2926210380((&V_2), L_2, (0.0f), L_3, /*hidden argument*/NULL);
		Rigidbody_t1972007546 * L_4 = (__this->___rb_2);
		Vector3_t3525329789  L_5 = V_2;
		float L_6 = (__this->___speed_4);
		Vector3_t3525329789  L_7 = Vector3_op_Multiply_m973638459(NULL /*static, unused*/, L_5, L_6, /*hidden argument*/NULL);
		NullCheck(L_4);
		Rigidbody_AddForce_m3682301239(L_4, L_7, /*hidden argument*/NULL);
		return;
	}
}
开发者ID:joncodo,项目名称:RollABall,代码行数:29,代码来源:Bulk_Assembly-CSharp_0.cpp



注:本文中的NullCheck函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ NullPointerException函数代码示例发布时间:2022-05-30
下一篇:
C++ Null函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap