From fdaa2920eb21fff3320a17e9239e04dfadecdb00 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 18 Apr 2015 14:38:54 -0300 Subject: Updated copyright year in all headers --- core/method_bind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/method_bind.h') diff --git a/core/method_bind.h b/core/method_bind.h index 6ea9340ad5..d32050cc5d 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -5,7 +5,7 @@ /* GODOT ENGINE */ /* http://www.godotengine.org */ /*************************************************************************/ -/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ -- cgit v1.2.3 From 2d396fb71070f282b6858cb77efac1c948b6b4a9 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 4 May 2015 18:30:57 -0300 Subject: -More strict argument type-checking, will make many bugs visible, fixes #1809 -added NOTIFICATION_INSTANCED --- core/method_bind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/method_bind.h') diff --git a/core/method_bind.h b/core/method_bind.h index d32050cc5d..49c64bd11c 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -98,7 +98,7 @@ struct VariantCaster {\ #define CHECK_ARG(m_arg)\ if ((m_arg-1)get_type(),argtype)) {\ + if (!Variant::can_convert_strict(p_args[m_arg-1]->get_type(),argtype)) {\ r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT;\ r_error.argument=m_arg-1;\ r_error.expected=argtype;\ -- cgit v1.2.3 From e323cc050564fdb1b5cf81793d173cbd9483f55a Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 18 May 2015 10:20:54 -0300 Subject: -Rename unexisting by nonexistant, closes #1940 -Added function to retrieve list of actions fron InputMap --- core/method_bind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/method_bind.h') diff --git a/core/method_bind.h b/core/method_bind.h index 49c64bd11c..85c1084f80 100644 --- a/core/method_bind.h +++ b/core/method_bind.h @@ -298,7 +298,7 @@ MethodBind* create_native_method_bind( Variant (T::*p_method)(const Variant**,in // tale of an amazing hack.. // -// if you declare an unexisting class.. +// if you declare an nonexistent class.. class __UnexistingClass; -- cgit v1.2.3