ReClass.NET
ReClass.NET copied to clipboard
[REQUEST] Prepend Headers
Is there a way to prepend (and append) some text inside the code generator?
Use case: #pragma once
or include guards; including extra Headers and such.
I see a possible way after the Created with ReClass.NET 1.1 by KN4CK3R
comment, but it would be good to be customizable and saved per project.
Just create a ReClass header that is for straight CTRL+C->CTRL+V. Then, you can have an SDK header that includes the ReClass header, any necessary headers, prepends, appends, and include guards. I think that's more maintainable than having ReClass do it for you.
I'd hate to go back into ReClass every time I wanted to add something to the start or end of it, which could easily just be done within the IDE.
ReClass.hpp
// Created with ReClass.NET 1.1 by KN4CK3R
class Foo
{
};
SDK.hpp
#pragma once
// Includes
#include <cstdint>
// Prepends
// Force alignment if necessary
#pragma pack(push, r1, 1)
#include "ReClass.hpp"
#pragma pack(pop, r1)
// Appends
Then, where you need ReClass headers, just include SDK.hpp.
Well this is a workaround for sure. I'll be using this.
Still, since it has a built in Code Generator which can build up to hundreds of lines of code including virutal methods table and everythig, it is useful to have a per-project include guards as well.