From 0f54ab93bc25dc5164c678dc8cb653fdfe8a4f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 23 Jun 2016 07:54:30 +0200 Subject: [PATCH] Fix typo to PTRCALL_ENABLED from previous commit And boo @reduz, those trailing spaces :p --- core/make_binders.py | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/core/make_binders.py b/core/make_binders.py index 1d55c92b890..c14f07ac838 100644 --- a/core/make_binders.py +++ b/core/make_binders.py @@ -48,12 +48,12 @@ public: $ifnoret return Variant();$ } -#ifdef PTRCAL_ENABLED +#ifdef PTRCALL_ENABLED virtual void ptrcall(Object*p_object,const void** p_args,void *r_ret) { - + T *instance=p_object->cast_to(); - $ifret PtrToArg::encode( $ (instance->*method)($arg, PtrToArg::convert(p_args[@-1])$) $ifret ,r_ret)$ ; - } + $ifret PtrToArg::encode( $ (instance->*method)($arg, PtrToArg::convert(p_args[@-1])$) $ifret ,r_ret)$ ; + } #endif MethodBind$argc$$ifret R$$ifconst C$ () { #ifdef DEBUG_METHODS_ENABLED @@ -129,10 +129,10 @@ public: } #ifdef PTRCALL_ENABLED virtual void ptrcall(Object*p_object,const void** p_args,void *r_ret) { - __UnexistingClass *instance = (__UnexistingClass*)p_object; - $ifret PtrToArg::encode( $ (instance->*method)($arg, PtrToArg::convert(p_args[@-1])$) $ifret ,r_ret) $ ; - } -#endif + __UnexistingClass *instance = (__UnexistingClass*)p_object; + $ifret PtrToArg::encode( $ (instance->*method)($arg, PtrToArg::convert(p_args[@-1])$) $ifret ,r_ret) $ ; + } +#endif MethodBind$argc$$ifret R$$ifconst C$ () { #ifdef DEBUG_METHODS_ENABLED _set_const($ifconst true$$ifnoconst false$); @@ -254,10 +254,3 @@ def run(target, source, env): f=open(target[1].path,"w") f.write(text_ext) f.close() - - - - - - -