Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1c"""source-before-namespace
2#include <csignal>
3"""
5enum Signal:
6 Terminate = c"SIGTERM"
7 Interrupt = c"SIGINT"
9func enable(signal: Signal):
10 """Enable given signal.
12 """
14 c"""
15 mys::enable_signal(signal);
16 """
18func disable(signal: Signal):
19 """Disable given signal.
21 """
23 c"""
24 mys::disable_signal(signal);
25 """