File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ def __str__(self):
62
62
content .append ("" )
63
63
for object in self .objects :
64
64
content .append (str (object ))
65
- content .append ("__END_C_DECLS" )
65
+ if self .objects :
66
+ content .append ("\n __END_C_DECLS" )
67
+ else :
68
+ content .append ("__END_C_DECLS" )
66
69
67
70
return "\n " .join (content )
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ enum {
27
27
__BEGIN_C_DECLS
28
28
29
29
#ifdef FUNC_A_16
30
- void func_a ()CONST_FUNC_A ;
30
+ CONST_FUNC_A void func_a () __NOEXCEPT ;
31
31
#endif // FUNC_A_16
32
32
33
33
#ifdef FUNC_B_16
34
- int func_b (int , float )CONST_FUNC_B ;
34
+ CONST_FUNC_B int func_b (int , float ) __NOEXCEPT ;
35
35
#endif // FUNC_B_16
36
36
37
37
extern obj object_1 ;
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ functions:
24
24
standards :
25
25
- stdc
26
26
guard : FUNC_A_16
27
- attributes : CONST_FUNC_A
27
+ attributes :
28
+ - CONST_FUNC_A
28
29
- name : func_b
29
30
return_type : int
30
31
arguments :
@@ -33,4 +34,5 @@ functions:
33
34
standards :
34
35
- stdc
35
36
guard : FUNC_B_16
36
- attributes : CONST_FUNC_B
37
+ attributes :
38
+ - CONST_FUNC_B
You can’t perform that action at this time.
0 commit comments