-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackls.com.h
More file actions
49 lines (42 loc) · 1.87 KB
/
Copy pathstackls.com.h
File metadata and controls
49 lines (42 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef STACKLS_COMMON_H
#define STACKLS_COMMON_H
#define PROG_NAME stackls
#define PROG_LICENSE 2023 Chuback Bidpaa, Unlicense
#define PROG_USAGE \
Usage: \
stackls[-o OutPath] PID
#define PROG_EXAMPLE \
Example: \
stackls 24212
#define PROG_HINT \
You may pass a filepath as output.Need not exit.Otherwise, \
prints to stdout.You can also redirect the PID via stdin, however, \
then, the arguments will not be working.
#ifdef __GNUC__
#define _normal_inline static inline __attribute__((always_inline))
#define _hotbed_inline static inline __attribute__((always_inline, hot))
#define _coldbed_inline static inline __attribute__((always_inline, cold))
#define _noreturn_inline static inline __attribute__((noreturn, always_inline, hot))
#define _fn_metadata file __FILE__, line __LINE__
#define _fn_name __PRETTY_FUNCTION__
#elif _MSC_VER
#define _normal_inline static inline __forceinline
#define _hotbed_inline static inline __forceinline
#define _coldbed_inline static inline __forceinline
#define _noreturn_inline static inline __declspec(noreturn)
#define _fn_metadata file __FILE__, line __LINE__
#define _fn_name __func__
#else
#define _normal_inline static inline
#define _hotbed_inline static inline
#define _coldbed_inline static inline
#define _fn_metadata file __FILE__, line __LINE__
#define _fn_name __func__
#endif
#define _static_func static
#define _static_obj static
#define _str_raw(...) #__VA_ARGS__
#define STR(...) _str_raw (__VA_ARGS__)
#define STR_LF(...) STR (__VA_ARGS__ \n)
#define STR_CRLF(...) STR (__VA_ARGS__ \r\n)
#endif