From 28ed1fdff7a9652a22b757970fe1ea0cc054fced Mon Sep 17 00:00:00 2001 From: Emd4600 Date: Sun, 30 Jun 2019 23:29:25 +0200 Subject: [PATCH] public/private bugfix --- inc/CppRevEng.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/CppRevEng.h b/inc/CppRevEng.h index ee5f7c2..f344a27 100644 --- a/inc/CppRevEng.h +++ b/inc/CppRevEng.h @@ -242,11 +242,11 @@ struct member_detour_ +template typename static_detour_::detour_pointer static_detour_::original_function; -template +template typename member_detour_::detour_pointer member_detour_::original_function; @@ -258,12 +258,12 @@ member_detour_::orig /// Inside the detoured function, you can call the original function using `original_function()` with /// the appropiate parameters. For example, `original_function(3, myObject, 4.0)` /// -/// This is a class object, so you must follow this declaration with {}. Inside you can define +/// This is a struct object, so you must follow this declaration with {}. Inside you can define /// static functions and static variables as well. /// /// @param name The name of this detour object. /// @param declaration The function declaration, with no names. For example, void(int, float) -#define static_detour(name, declaration) class name : public static_detour_< name , declaration > +#define static_detour(name, declaration) struct name : public static_detour_< name , declaration > /// Detours a class member method. In the macro parameters you must specify: /// - name: A name given to this detour object, to differentiate it from the rest. @@ -276,13 +276,13 @@ member_detour_::orig /// /// Inside the detoured function, you can can access the `this` pointer and any public/protected fields of the base class. /// -/// This is a class object, so you must follow this declaration with {}. Inside you can define +/// This is a struct object, so you must follow this declaration with {}. Inside you can define /// methods (static and member) and static variables as well. You cannot add member variables. /// /// @param name The name of this detour object. /// @param baseClass The name of the class where the method is. From the detoured code you can access its members. /// @param declaration The method declaration, with no names. For example, void(int, float) -#define member_detour(name, baseClass, declaration) class name : public member_detour_< name , baseClass, baseClass, declaration > +#define member_detour(name, baseClass, declaration) struct name : public member_detour_< name , baseClass, baseClass, declaration > /// Detours a virtual class member method. In the macro parameters you must specify: /// - name: A name given to this detour object, to differentiate it from the rest. @@ -310,11 +310,11 @@ member_detour_::orig /// /// Inside the detoured function, you can can access the `this` pointer and any public/protected fields of the base class. /// -/// This is a class object, so you must follow this declaration with {}. Inside you can define +/// This is a struct object, so you must follow this declaration with {}. Inside you can define /// methods (static and member) and static variables as well. You cannot add member variables. /// /// @param name The name of this detour object. /// @param baseClass The name of the class where the method is. From the detoured code you can access its members. /// @param virtualClass The name of the class where the method is declared. /// @param declaration The method declaration, with no names. For example, void(int, float) -#define virtual_detour(name, baseClass, virtualClass, declaration) class name : public member_detour_< name , baseClass, virtualClass, declaration > +#define virtual_detour(name, baseClass, virtualClass, declaration) struct name : public member_detour_< name , baseClass, virtualClass, declaration >