printjson: indentation in .hpp
This commit is contained in:
parent
3b00641d17
commit
0f4f874587
1 changed files with 14 additions and 14 deletions
|
|
@ -8,21 +8,21 @@
|
||||||
#include "xo/subsys/Subsystem.hpp"
|
#include "xo/subsys/Subsystem.hpp"
|
||||||
|
|
||||||
namespace xo {
|
namespace xo {
|
||||||
/* tag to represent the printjson/ subsystem within ordered initialization */
|
/* tag to represent the printjson/ subsystem within ordered initialization */
|
||||||
enum S_printjson_tag {};
|
enum S_printjson_tag {};
|
||||||
|
|
||||||
/* Use:
|
/* Use:
|
||||||
* // anywhere, to declare printjson dependency e.g. at file scope
|
* // anywhere, to declare printjson dependency e.g. at file scope
|
||||||
* InitEvidence s_evidence = InitSubsys<S_printjson_tag>::require();
|
* InitEvidence s_evidence = InitSubsys<S_printjson_tag>::require();
|
||||||
*
|
*
|
||||||
* // from main(), though can resort to module initialization in a pybind11 library
|
* // from main(), though can resort to module initialization in a pybind11 library
|
||||||
* Subsystem::initialize_all();
|
* Subsystem::initialize_all();
|
||||||
*/
|
*/
|
||||||
template<>
|
template<>
|
||||||
struct InitSubsys<S_printjson_tag> {
|
struct InitSubsys<S_printjson_tag> {
|
||||||
static void init();
|
static void init();
|
||||||
static InitEvidence require();
|
static InitEvidence require();
|
||||||
};
|
};
|
||||||
} /*namespace xo*/
|
} /*namespace xo*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue