| 426 | | |
|---|
| 427 | | namespace vpr |
|---|
| 428 | | { |
|---|
| 429 | | |
|---|
| 430 | | /* |
|---|
| 431 | | struct DebugCatRegistrator |
|---|
| 432 | | { |
|---|
| 433 | | DebugCatRegistrator(vpr::GUID catGuid, std::string catName, std::string catPrefix) |
|---|
| 434 | | { |
|---|
| 435 | | vpr::Debug::instance()->addCategory(catGuid, catName, catPrefix); |
|---|
| 436 | | } |
|---|
| 437 | | }; |
|---|
| 438 | | */ |
|---|
| 439 | | } // namespace |
|---|
| 440 | | |
|---|
| 441 | | /** Helper macro for registering category |
|---|
| 442 | | * Defines a (file) unique variable that create a registrator in the file prive namespace |
|---|
| 443 | | * @param NAME String name of the category (as used in the environment variable). Note: This is not in string ("str") form |
|---|
| 444 | | * @param CAT GUID id of the category |
|---|
| 445 | | * Use this in the .cpp files to register the actually token with vpr::Debug. |
|---|
| 446 | | * @see Debug.cpp |
|---|
| 447 | | */ |
|---|
| 448 | | //#define vprREGISTER_DBG_CATEGORY(CAT, NAME, PREFIX ) vpr::DebugCatRegistrator NAME ## _registrator (CAT, #NAME, PREFIX); |
|---|
| 449 | | |
|---|