ProSurfer73 / Macro-Parser

A C/C++ macro calculator
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Feature Request : support several macro spaces #8

Closed fred-r closed 2 years ago

fred-r commented 2 years ago

In the current version, all macros go in the same defines space. I would like to define several macros spaces.

Something like:

importfolder c:\Temp1 my_space1 : my_space_1 created if it does not exist importfolder c:\Temp2 my_space2 : my_space_2 created if it does not exist

Then I can do evaluations in each macros space.

Also, I'd like to add elements into an existing space:

importfile c:\Temp3\foo.h my_space1 importfolder c:\Temp4\ my_space1

Then for each command I indicate in which macros space I work.

Of course we need extra commands:

list spaces my_space1 my_space2

printsources my_space1 c:\Temp1 c:\Temp3\foo.h c:\Temp4

printsources my_space2 c:\Temp2

ProSurfer73 commented 2 years ago

The feature is currently implemented on the main branch.

ProSurfer73 commented 2 years ago

This feature has been released in v1.4.0 .