Hide keyboard shortcuts

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""" 

4 

5enum Signal: 

6 Terminate = c"SIGTERM" 

7 Interrupt = c"SIGINT" 

8 

9func enable(signal: Signal): 

10 """Enable given signal. 

11 

12 """ 

13 

14 c""" 

15 mys::enable_signal(signal); 

16 """ 

17 

18func disable(signal: Signal): 

19 """Disable given signal. 

20 

21 """ 

22 

23 c""" 

24 mys::disable_signal(signal); 

25 """