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"
|
||||
|
||||
namespace xo {
|
||||
/* tag to represent the printjson/ subsystem within ordered initialization */
|
||||
enum S_printjson_tag {};
|
||||
/* tag to represent the printjson/ subsystem within ordered initialization */
|
||||
enum S_printjson_tag {};
|
||||
|
||||
/* Use:
|
||||
* // anywhere, to declare printjson dependency e.g. at file scope
|
||||
* InitEvidence s_evidence = InitSubsys<S_printjson_tag>::require();
|
||||
*
|
||||
* // from main(), though can resort to module initialization in a pybind11 library
|
||||
* Subsystem::initialize_all();
|
||||
*/
|
||||
template<>
|
||||
struct InitSubsys<S_printjson_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
/* Use:
|
||||
* // anywhere, to declare printjson dependency e.g. at file scope
|
||||
* InitEvidence s_evidence = InitSubsys<S_printjson_tag>::require();
|
||||
*
|
||||
* // from main(), though can resort to module initialization in a pybind11 library
|
||||
* Subsystem::initialize_all();
|
||||
*/
|
||||
template<>
|
||||
struct InitSubsys<S_printjson_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
} /*namespace xo*/
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue