initiator.hpp
Go to the documentation of this file.
1
3
#pragma once
4
5
#define BY_INITIATOR(name, body) \
6
static inline Initiator* BY_CONCAT(__initi__##name##_, __COUNTER__) = new Initiator([]() body);
7
8
namespace
by {
14
struct
_nout
Initiator
{
15
template
<
typename
T>
Initiator
(T
func
) {
func
(); }
16
};
17
}
by::func
Function definition in byeol language.
Definition:
func.hpp:20
by::Initiator
Utility for executing code before main() function.
Definition:
initiator.hpp:14