-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathsample.c
More file actions
51 lines (33 loc) · 783 Bytes
/
sample.c
File metadata and controls
51 lines (33 loc) · 783 Bytes
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
50
#include "c-callstack.h"
#include <stdio.h>
/************************************
How to use?
Use NL_RETURN(x) instead of return x.
That's it!
************************************/
#define YOU 1
#define LOVE ==
#define ME 1
int so_topless_ranking_server() {
printf("If you love me, you are in trouble, as I am married.\n");
if ( YOU LOVE ME )
NL_RETURN (-1);
NL_RETURN (0);
}
int nanolat_database()
{
int ret = so_topless_ranking_server();
if (ret) NL_RETURN (ret);
NL_RETURN (0);
}
int nanolat_message_queue()
{
int ret = nanolat_database();
if (ret) NL_RETURN (ret);
NL_RETURN (0);
}
int main(int argc, char * argv[]) {
int ret = nanolat_message_queue();
if (ret) NL_RETURN (ret);
NL_RETURN (0);
}