printjson: indentation in .hpp

This commit is contained in:
Roland Conybeare 2023-10-09 14:54:17 -04:00
commit 0f4f874587

View file

@ -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*/