Jump to content

[C++] Define Parser


koridev
 Share

Recommended Posts

  DefineExtractor – Extract Preprocessor Defines from C/C++ Code 

 Lightweight & Fast Tool for Extracting Preprocessor Macros 

 

🛠 Features:  
 Extracts `#define` macros from C and C++ source code.  
 Supports complex macros, including those with parameters.  
 Fast & efficient – parses large codebases with minimal overhead.  
 Standalone tool – no dependencies required, runs directly.  
 Ideal for static analysis, reverse engineering, and code auditing.  

 

 How It Works:
- Scans `.c`, `.cpp`, `.h`, and `.hpp` files for `#define` statements.  
- Extracts macro names, values, and parameters.  
- Outputs structured results for easy processing.  

 

 Download & Usage:
 GitHub Repository: 

This is the hidden content, please

 How to use:
 Clone the repository:  

This is the hidden content, please


 Compile the tool (if needed) or run the precompiled binary.  
 Extract macros from source files.
 View extracted defines in the output.  

 FAQ:
 What is this tool useful for?
- Reverse engineering legacy codebases.  
- Static analysis of C/C++ projects.  
- Automating the extraction of preprocessor macros.  

 Is it open-source?
Yes! The project is fully open-source under the MIT license.  

 Can it handle large projects?
Absolutely! It is optimized for performance and can process large amounts of code efficiently.  

 

 Feedback & Contributions Welcome!
- Found a bug or have a feature request? Open an issue on GitHub!  
- Contributions are welcome – feel free to submit a pull request.  

 GitHub Repo: 

This is the hidden content, please


Update :
0.3:

This is the hidden content, please

Edited by koridev
  • Like 4
  • Sad 1
Link to comment
Share on other sites

  • Metin2PServers Bot

Thank you for the post koridev

Forum Description : Metin2 Server Files, Server Files, Metin2 Private Servers, Metin2, Metin2 Systems, C++ and Python, Metin2 Home Pages, Metin2 Private Server, Metin2 Download, Metin2 Support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.

Now we will take care that your topic reaches many people by adding tags:

metin2 c++ ,autopatcher metin2 c++ ,turkmmo metin2 c++ ,metin2 switchbot c++ ,metin2 system ,turkmmo metin2 system ,metin2 system requirements ,metin2 systems ,metin2 system zwierzakow ,metin2 systemanforderungen ,metin2 pet system ,metin2 wiki pet system ,metin2 fishbot new system ,metin2 battle pass system ,metin2 teleport system ,metin2 system anforderungen ,metin2 arrow system ,metin2 aura system ,metin2 alchemy system ,metin2 acce system ,what is metin2 ,metin2 biolog system ,metin2 buff system ,buffi system metin2 ,eventi metin2 ,metin2 bo location ,metin2 release date ,metin2 skill color system ,metin2 pin code system ,metin2 costume weapon system ,costume system metin2 ,metin2 champion level system ,metin2 c++ highlight system ,metin2 classes ,metin2 dice system ,metin2 pet system de ,system dusz metin2 ,system zwierzat domowych metin2 ,metin2 dungeon info system ,metin2 mob drop info system ,dungeon system metin2 ,metin2 de pet system ,metin2 wiki de pet system ,system zwierzaków domowych metin2 ,dracarys system metin2 ,metin2 effect system ,metin2 emoji system ,metin2 element system ,metin2 fly system ,metin2 fov system ,metin2 offline farm system ,metin2 best pvm class ,cheats of metin2 ,metin2 fishbot old system ,fish system metin2 ,difference between fmf and fms ,metin2 gaya system ,metin2 game system requirement ,gem system metin2 ,metin2 gm commands ,metin2 top list ,highlight system metin2 ,metin2 special inventory system ,metin2 target info system ,metin2 p server liste ,metin2 multi language system ,metin2 login system ,metin2 mount system ,metin2 multilanguage system ,metin2 maintenance system ,metin2 minimum system requirements ,system najemników metin2 ,metin2 offline shop system ,metin2 official pet system ,metin2 characters ,metin2 uk pet system ,metin2 pendant system ,system petów metin2 ,metin2 performance system ,metin2 pet system release ,premium system metin2 ,quiver_system metin2 ,pet_system quest metin2 ,metin2 rarity system ,metin system requirements ,metin2 rune system ,metin2 ro system requirements ,metin2 rank points ,rank system metin2 ,metin2 sash system ,metin2 shining system ,metin2 specular system ,metin2 shop search system ,system szarf metin2 ,metin2 schulterband system ,shining system metin2 ,metin2 talisman system ,metin2 upgrade system ,c++ metin2 systems ,metin2 offline shop ,metin2 pet system ,metin2 worldboss system ,wikipedia system ,metin2 free systems ,metin2systems

Link to comment
Share on other sites

23 hours ago, koridev said:

I have written a tool here which extracts the defines from the files and creates data with the contents.

You can “scan” the client/server source at the same time by using this structure

Main folder:
exe
ClientSource/
ServerSource/

Alternatively, do it yourself for each source


Extremely important!!!
If you have errors then write here about Github (I think it's better)

You have improvements ?

Hidden Content

  • Reply to this topic to see the hidden content.

 


Main link:

 

 

Hidden Content

  • Reply to this topic to see the hidden content.

 

 

TY

  • Like 1
Link to comment
Share on other sites

On 2/19/2025 at 4:54 PM, koridev said:

  DefineExtractor – Extract Preprocessor Defines from C/C++ Code 

 Lightweight & Fast Tool for Extracting Preprocessor Macros 

 

🛠 Features:  
 Extracts `#define` macros from C and C++ source code.  
 Supports complex macros, including those with parameters.  
 Fast & efficient – parses large codebases with minimal overhead.  
 Standalone tool – no dependencies required, runs directly.  
 Ideal for static analysis, reverse engineering, and code auditing.  

 

 How It Works:
- Scans `.c`, `.cpp`, `.h`, and `.hpp` files for `#define` statements.  
- Extracts macro names, values, and parameters.  
- Outputs structured results for easy processing.  

 

 Download & Usage:
 GitHub Repository: 

Hidden Content

  • Reply to this topic to see the hidden content.

 

 How to use:
 Clone the repository:  

Hidden Content

  • Reply to this topic to see the hidden content.


 Compile the tool (if needed) or run the precompiled binary.  
 Extract macros from source files.
 View extracted defines in the output.  

 FAQ:
 What is this tool useful for?
- Reverse engineering legacy codebases.  
- Static analysis of C/C++ projects.  
- Automating the extraction of preprocessor macros.  

 Is it open-source?
Yes! The project is fully open-source under the MIT license.  

 Can it handle large projects?
Absolutely! It is optimized for performance and can process large amounts of code efficiently.  

 

 Feedback & Contributions Welcome!
- Found a bug or have a feature request? Open an issue on GitHub!  
- Contributions are welcome – feel free to submit a pull request.  

 GitHub Repo: 

Hidden Content

  • Reply to this topic to see the hidden content.

 

 

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Terms of Service