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